OpenCode
MillionShort search in OpenCode, through the hosted MCP server.
Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)
MCPHosted MCP server, nothing to installKey read from the environmentWorks with no keyChecked 2026-11-19
1Add the server
Add the server to opencode.jsonc in your project. OpenCode fills in {env:...} from the environment; oauth: false tells it not to start a sign-in:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"millionshort": {
"type": "remote",
"url": "https://mcp.millionshort.com/mcp",
"oauth": false,
"headers": { "Authorization": "Bearer {env:MILLIONSHORT_API_KEY}" }
}
}
}
}{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"millionshort": {
"type": "remote",
"url": "https://mcp.millionshort.com/mcp",
"oauth": false
}
}
}
}Or one command (single quotes keep {env:...} as it is; add --global for every project):
opencode mcp add millionshort --url https://mcp.millionshort.com/mcp \
--header 'Authorization=Bearer {env:MILLIONSHORT_API_KEY}'This is the format of OpenCode's current docs (mcp.servers). Older releases took a flat mcp.<name> with enabled: true.
2Try it
Ask OpenCode:
Search MillionShort for forum threads about restoring a cast iron skillet, with the 1,000 most popular sites removed. List the five most useful with their links.
A good answer comes from a search call (the client shows the tool call) and links to pages you may not have seen before.
3Turn off the built-in search
Turn off OpenCode's web search and deny its fetch tool in the same opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"websearch": false,
"permissions": [
{ "action": "webfetch", "resource": "*", "effect": "deny" }
]
}Add this line to AGENTS.md:
Use the MillionShort search tool for anything recent, niche, or that needs a source. To reach lesser-known sites, set remove_top_sites (for example 1000). Cite the URLs it returns.
4Check it works
Run opencode mcp list: it shows millionshort connected. Inside OpenCode, /mcps.
With a key you should see search, get_domain_info, list_sources and the tools of the other endpoints (the MCP page lists them); with no key, fewer, search and list_sources among them.
The server
One address for every client: https://mcp.millionshort.com/mcp, streamable HTTP. A key is optional.
| Mode | How | What the agent gets |
|---|---|---|
| API key | Send Authorization: Bearer ms-YOUR_API_KEY | Every tool, at your plan's limits; calls use your credits |
| No key | Send no Authorization header | search, list_sources and a few more; one source and up to 5 results a search, 10 free searches a day |
Tools
| Tool | What it does | Without a key | Cost |
|---|---|---|---|
search | Searches the web and the specialist sources, with the popularity, domain, page-type, topic, site and date filters | Yes: one source, up to 5 results | 1 credit per source searched, first 10 results |
get_domain_info | Popularity and risk for up to 25 sites | No | 1 credit |
list_sources | The sources, page types and topics search accepts | Yes: source names | Free |
| The tools of the other endpoints | extract, map, crawl, places and more: the MCP page lists them | A few, such as places | What the API call behind each costs |
Costs and limits
A tool call costs what the API call behind it costs: 1 credit per source searched for the first 10 results, 1 credit for a domain lookup, nothing for the list of sources, the price of the endpoint for the other tools, and nothing at all in the no-key mode. An agent that loops can make many calls: give it a step limit, and ask for fewer results when a few will do. Credits and limits has the numbers.
When it fails
| What you see | Why | Fix |
|---|---|---|
| The server does not connect, or no tools are listed | The address or the transport is not the one the server speaks | Use exactly https://mcp.millionshort.com/mcp and the streamable HTTP transport (often called http), not SSE |
401 or "unauthorized" | The key is wrong, or it was sent without Bearer | Send Authorization: Bearer ms-..., or leave the header out to use the no-key mode |
| "10 free searches a day without a key" | The no-key mode's daily searches are used up | Add a key: it is free in the dashboard |
INSUFFICIENT_CREDITS | The plan's credits are used up | Stop and add credits; retrying does not help |
| The agent answers from memory, or uses another search | Nothing told it when to use this one | Turn off its own search where it can be (this page says how), and add the line for its instructions |
Related
- MCP server: the address, every tool, and what the no-key mode allows.
- Filters for agents: what to ask
searchfor, with recipes. - More coding agents: Claude Code, Cursor, Codex, GitHub Copilot in VS Code, and every integration.
- OpenCode's own documentation, read on 2026-11-19: MCP servers, Web search, Permissions.