Spiral gives your agent every tool with one account. Browse the tools →

Cursor · E-commerce

How to Use GitHub repository search in Cursor

Returns matching public repositories with descriptions, owners, languages, stars, forks, and activity timestamps. Use it to find projects and compare candidates before reading their security disclosures.

Prompts to try with GitHub repository search in Cursor

Copy an example into Cursor, or ask in your own words.

Use GitHub repository search to find public Rust HTTP client projects. Compare their descriptions, stars, forks, and activity timestamps with the requirements in our README.

GitHub repository searchCursor
Try asking
  • Use GitHub repository search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from GitHub repository search and tell me what changed since last week.

  • Check GitHub repository search and summarize what you find in three bullet points.

  • Pull the newest data from GitHub repository search and give me the result as a table.

How to set up GitHub repository search in Cursor

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to Cursor on the console's Agents & MCP page, or add this to .cursor/mcp.json (one project) or ~/.cursor/mcp.json (every project):

    {
      "mcpServers": {
        "spiral": { "url": "https://api.spiral.ai/mcp" }
      }
    }
  2. Sign in

    Open Cursor Settings › MCP, click Connect next to spiral, sign in to Spiral and click Authorize. No API key. Spiral then shows as connected, with its tools listed.

Use the Spiral skill

  1. Send Cursor this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run GitHub repository search

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "github-com/repositories/search_repos",
        "input": {
          "query": "<query>"
        }
      }'

Then paste one of the prompts above: Cursor finds GitHub repository search on Spiral, shows the price and runs it.

GitHub repository search providers and prices

Spiral runs GitHub repository search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaE-commerce
GitHub · Search repos
github-com/repositories/search_repos

Settings you can ask for

Ask Cursor for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page1 to 1001

page

Sortbest_match, stars, forks, help_wanted_issues, or updatedbest_match

sort

Orderasc or descdesc

order

Per page1 to 10010

per_page

Every API field of GitHub · Search repos is on its tool page: open its card above.

What can you do with GitHub repository search in Cursor?

Add GitHub evidence to a dependency decision in your project. A coding agent can connect public project, organization, or advisory records to the packages and versions in your files.

Build a dependency shortlist

Find candidate organizations, inspect their public profiles, compare repositories, and read both project disclosures and package advisories before choosing a dependency.

Prepare a migration decision

Compare replacement projects, identify their publishing organizations, and summarize known vulnerabilities and available fixes alongside repository activity.

Review a vendor's public software

Locate a vendor's GitHub organization, document its public profile and repositories, and examine disclosures for the projects and packages under consideration.

Write a project research brief

Resolve an organization's GitHub account, describe its public projects, and explain relevant repository disclosures and package vulnerabilities with links to the records.

Map an organization's public projects

Find organization accounts, inspect their public descriptions and websites, and collect matching repositories into a project directory.

Compare public project activity

Compare repository descriptions, languages, stars, forks, and activity timestamps, with organization profiles providing context for ownership.

Questions about GitHub repository search in Cursor

Can Cursor use GitHub repository search?

Yes. Add Spiral to Cursor as an MCP server, and Cursor can find and run GitHub repository search like any built-in tool.

How much does GitHub repository search cost in Cursor?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Cursor plan is separate.

Do I need an Alexandria account to use GitHub repository search in Cursor?

No. Spiral runs GitHub repository search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up GitHub repository search in Cursor?

About two minutes: add the hosted server, then sign in.

Does Cursor wait while GitHub repository search runs?

GitHub repository search runs in the background. Cursor starts the run, checks on it and gives you the json when it's ready.

Are forks included in GitHub repository searches?

Forks are excluded by default. GitHub supports including forks alongside original repositories or searching only forks.

Which security disclosures are public?

Anyone can read a published advisory on a public repository. Unpublished advisory discussions require access to that disclosure.

What does GitHub-reviewed mean?

GitHub checks reviewed advisories for validity and maps them to packages in supported ecosystems. Unreviewed advisories are imported automatically from the National Vulnerability Database feed.

How quickly do repository disclosures reach the Advisory Database?

GitHub says the review and publication process can take up to 72 hours. A repository's published advisory can therefore appear before its reviewed database record.

Can I reuse GitHub Advisory Database records?

The Advisory Database uses CC BY 4.0. Reuse requires appropriate credit, a license link, and an indication of changes; GitHub's API terms also prohibit collecting data for spam or selling users' personal information.

Get started

Start using GitHub repository search in Cursor

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Cursor:

Set up Cursor

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options