Ref MCP
Token-efficient documentation search and reading for coding agents, across public and private libraries.
Sources and review
Checked against public documentation on . Suitability guidance is our editorial judgment; this is not a performance benchmark or an endorsement.
Coding agents that repeatedly look up third-party API docs and need to conserve context.
You'd rather not sign up for a service; it needs a Ref API key.
About Ref MCP
Ref MCP gives coding agents documentation for APIs, services and libraries through search and read tools designed to return only the relevant part of a page, keeping context small. It connects over streamable HTTP or stdio.
Ref MCP is an open-source project written primarily in TypeScript, with 1.2k stars on GitHub. It was last updated in September 2026.
Add Ref MCP to your MCP client
Generated from the launch command in the project's README. Your client starts the server on demand. Replace <your-api-key> with your own value first.
Claude Code
claude mcp add ref-tools-mcp -e 'REF_API_KEY=<your-api-key>' -- npx ref-tools-mcp@latestCursor
{
"mcpServers": {
"ref-tools-mcp": {
"command": "npx",
"args": ["ref-tools-mcp@latest"],
"env": {
"REF_API_KEY": "<your-api-key>"
}
}
}
}VS Code
{
"servers": {
"ref-tools-mcp": {
"type": "stdio",
"command": "npx",
"args": ["ref-tools-mcp@latest"],
"env": {
"REF_API_KEY": "<your-api-key>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"ref-tools-mcp": {
"command": "npx",
"args": ["ref-tools-mcp@latest"],
"env": {
"REF_API_KEY": "<your-api-key>"
}
}
}
}Codex
[mcp_servers.ref-tools-mcp]
command = "npx"
args = ["ref-tools-mcp@latest"]
env = { REF_API_KEY = "<your-api-key>" }Ref MCP vs. the alternatives
All 163 alternatives →| Record | Stars | Pricing | ||
|---|---|---|---|---|
| Ref MCPthis listing | 1.2k | TypeScript | MIT | Open source |
| MCP Reference Servers | 91k | TypeScript | MIT AND Apache-2.0 | Open source |
| context7 | 62k | TypeScript | MIT | Open source |
| chrome-devtools-mcp | 53k | TypeScript | Apache-2.0 | Open source |
| Playwright MCP | 37k | TypeScript | Apache-2.0 | Open source |
| github-mcp-server | 33k | Go | MIT | Open source |
