Menu

Get started

Set up for agents

Hand one of these prompts to your coding agent. Each points the agent at a plain-text file with the exact steps.

Prompts to paste

Add MillionShort search to this project

Prompt
Read https://millionshort.com/docs/auth.md and set up MillionShort search in this project.
Use the key in the MILLIONSHORT_API_KEY environment variable; if it is not set, tell me and stop.
Add one small function that calls POST https://api.millionshort.com/v1/search and returns the results,
with a timeout and the error handling that file describes. Then run one search and show me the titles and URLs.
Do not write the key into any file.

Connect the MCP server

Prompt
Read https://millionshort.com/docs/auth.md, find the page for the client you run in at https://millionshort.com/docs/integrations.md,
and connect the MillionShort MCP server (https://mcp.millionshort.com/mcp) to this workspace as that page says, using the
key in the MILLIONSHORT_API_KEY environment variable. Then call the list_sources tool and one
search, and show me what came back.

Try it with a trial key

Prompt
Read https://millionshort.com/docs/auth.md. Get a MillionShort trial key as described there (it lasts
24 hours and has 25 credits), keep it in an environment variable for this session only, and run
one search with remove_top_sites set to 10000. Show me the results and what the call cost.

Teach the project how to search

Prompt
Fetch https://millionshort.com/docs/snippets/AGENTS.md and add its content to this project's AGENTS.md
(create the file if it does not exist). Do not change anything else.

Keys

A key from the dashboard is the one to use in a project. The Free plan needs a verified email address and no card; see pricing.

An agent can also get a trial key by itself, with no account. A trial key lasts 24 hours, carries 25 credits, and cannot be renewed or topped up. The number of trial keys per network address and per day is limited.

Trial key
curl -s -X POST https://api.millionshort.com/v1/keys/agent \
  -H "Content-Type: application/json" \
  -d '{"agent": "my-agent", "purpose": "trying search in a project"}'

Connect the MCP server

The hosted server needs nothing installed. Its three search tools are search, get_domain_info and list_sources, and all three only read; with a key it also has the tools of the other endpoints, 16 tools in all. The MCP page covers the server, and Integrations has a page for each client, with its exact file or command.

Claude Code
claude mcp add --transport http millionshort https://mcp.millionshort.com/mcp \
  --header "Authorization: Bearer $MILLIONSHORT_API_KEY"
Cursor (.cursor/mcp.json) and other clients that take mcpServers with a header
{
  "mcpServers": {
    "millionshort": {
      "type": "http",
      "url": "https://mcp.millionshort.com/mcp",
      "headers": { "Authorization": "Bearer ms-YOUR_API_KEY" }
    }
  }
}
GitHub Copilot in VS Code (.mcp.json at the workspace root)
{
  "mcpServers": {
    "millionshort": {
      "type": "http",
      "url": "https://mcp.millionshort.com/mcp",
      "headers": { "Authorization": "Bearer ${MILLIONSHORT_API_KEY}" },
      "tools": ["*"]
    }
  }
}

Files for agents