ref-tools-mcp
v3.0.1Token efficient search for coding agents over public and private documentation.
Values you need
| Variable | What it is | |
|---|---|---|
REF_API_KEY | required secret | Your API key for Ref |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add ref-tools-mcp -e 'REF_API_KEY=<REF_API_KEY>' -- npx -y ref-tools-mcp@3.0.1Add to
claude_desktop_config.json{
"mcpServers": {
"ref-tools-mcp": {
"args": [
"-y",
"ref-tools-mcp@3.0.1"
],
"command": "npx",
"env": {
"REF_API_KEY": "<REF_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"ref-tools-mcp": {
"args": [
"-y",
"ref-tools-mcp@3.0.1"
],
"command": "npx",
"env": {
"REF_API_KEY": "<REF_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "REF_API_KEY",
"id": "ref-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"ref-tools-mcp": {
"args": [
"-y",
"ref-tools-mcp@3.0.1"
],
"command": "npx",
"env": {
"REF_API_KEY": "${input:ref-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.ref-tools-mcp]
command = "npx"
args = ["-y", "ref-tools-mcp@3.0.1"]
env = { "REF_API_KEY" = "<REF_API_KEY>" }For AI agents
- Ask the user for: REF_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: ref_search_documentation, ref_read_url.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json