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
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
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
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
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.
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 mcp add --transport http millionshort https://mcp.millionshort.com/mcp \
--header "Authorization: Bearer $MILLIONSHORT_API_KEY"{
"mcpServers": {
"millionshort": {
"type": "http",
"url": "https://mcp.millionshort.com/mcp",
"headers": { "Authorization": "Bearer ms-YOUR_API_KEY" }
}
}
}{
"mcpServers": {
"millionshort": {
"type": "http",
"url": "https://mcp.millionshort.com/mcp",
"headers": { "Authorization": "Bearer ${MILLIONSHORT_API_KEY}" },
"tools": ["*"]
}
}
}Files for agents
- auth.md: Set-up steps written for an agent: get a key, connect, make one call.
- llms.txt: A short index of the documentation.
- llms-full.txt: The documentation as one text file.
- AGENTS.md block: A block to add to a project's AGENTS.md.
- Cursor rule: The same guidance as a rule file for .cursor/rules.
- mcp.json: The MCP server's address, sign-in modes and tools.
- openapi.json: The API as an OpenAPI document.