cursor-search-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cursor-search-mcpsearch the web for the latest MCP spec changes and summarize with sources"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cursor-search-mcp
Standalone MCP server that extracts Cursor's web search into a reusable tool â for any MCP client (pi, Claude Code, Cursor, etc.).
Pure protocol client: talks directly to api2.cursor.sh (RunSSE + BidiAppend, reverse-engineered from cursor-agent). No cursor-agent binary, no child processes, zero npm dependencies.
Features
ð Web search as a tool â server-side Cursor web search (the same engine behind cursor-agent's
web_search), returns summarized answers with source linksð API key login â
CURSOR_API_KEY(auto token exchange + refresh)ð OAuth login â browser-based PKCE device flow, for accounts without API keys
ðŠķ Zero deps â plain Node.js âĨ 18, single-purpose protocol implementation
ð Token cached with
0600permissions at~/.cursor-search-mcp/auth.json
Related MCP server: agent-web-search-mcp
Tools
Tool | Description |
| Validate API key / report token status |
| Start OAuth browser login (returns |
| Poll until browser authorization completes |
| Web search â returns |
Install
# from npm (after publish)
npx cursor-search-mcp
# or from source
git clone https://github.com/zzjcool/cursor-search-mcp
cd cursor-search-mcpConfiguration
API key (either way):
export CURSOR_API_KEY=crsr_xxxx
# or
echo "crsr_xxxx" > ~/.cursor-search-mcp/keyOr use OAuth â simplest from the terminal:
npx cursor-search-mcp login # prints a login URL, waits for you to authorize, caches the token
npx cursor-search-mcp status # check login state
npx cursor-search-mcp search "mcp spec 2026-07-28 changes" # one-shot searchOr from inside an agent session: call cursor_oauth_login â open the returned login_url â call cursor_oauth_wait.
On MCP startup without any credentials, the server automatically starts OAuth, prints the login URL to stderr, and polls in the background â the login-aware initialize instructions surface it to the agent.
Optional env vars:
Var | Default | Description |
|
| API base URL |
|
| Model used for search synthesis |
|
| State directory |
|
| Client version header |
MCP client config (stdio)
{
"mcpServers": {
"cursor-search": {
"type": "stdio",
"command": "npx",
"args": ["-y", "cursor-search-mcp"],
"env": { "CURSOR_API_KEY": "crsr_xxxx" }
}
}
}How it works
Reverse-engineered from cursor-agent 2026.10.01 (protocol verified end-to-end):
login POST /auth/exchange_user_api_key (API key â accessToken)
GET /auth/poll?uuid&verifier (OAuth PKCE device flow)
search POST /agent.v1.AgentService/RunSSE (downstream SSE stream)
POST /aiserver.v1.BidiService/BidiAppend (upstream binary frames)The client maintains the full agent-loop protocol: KV blob get/set ACKs, 5s client heartbeats, web-search approval interactions â so the server-side search engine executes as if invoked from a real agent session.
Caveats
Uses undocumented Cursor APIs; the protocol may change without notice (pin your version)
Search quota counts against your Cursor account
Educational / research purpose â respect Cursor's terms of service
License
MIT
âđïļ Moved: development continues in search-mcp-hub (
packages/cursor-search-mcp). This repo is the v1/v2 history archive. npm publishes continue from the monorepo.
This server cannot be deployed
Related MCP Connectors
Live AI-native web search with citations. One tool for every MCP client. Flat per-request pricing.
Web search and page-reading for AI agents. One-click OAuth connect, or a Caesar API key.
Free web search for AI agents. No API key required. Hosted MCP in active development.
Provides AI assistants with access to Seltz's powerful Web Search capabilities.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables web search through Exa or Parallel APIs for MCP-compatible AI clients like Cursor and Claude Code.18 npm1MIT
- FlicenseAqualityCmaintenanceEnables MCP-compatible agents to perform web searches via the agent-web-search engine, returning ranked results with sources.1-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to perform web search, extraction, and research across multiple provider backends with persistent multi-key rotation and auditable routing. Supports MCP, CLI, and Agent Skill entry points.MIT
- AlicenseAqualityAmaintenanceEnables MCP-capable agents to perform reliable web search and content fetching through a single server that automatically fails over across multiple providers. It handles keyed or keyless authentication automatically and returns clean Markdown or text results.21MIT