ref-tools-mcp
MCP server by ref-tools Verified · ref.tools
Ref MCP gives AI coding agents search and read access to public and private documentation while using few tokens. It is for developers who want agents to work from current API and library docs.
Install ref-tools-mcp
Built from the published package, never by AI.
claude mcp add --transport http ref-tools-mcp https://api.ref.tools/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"ref-tools-mcp": {
"url": "https://api.ref.tools/mcp"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"ref-tools-mcp": {
"url": "https://api.ref.tools/mcp"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"ref-tools-mcp": {
"url": "https://api.ref.tools/mcp"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
{
"mcpServers": {
"ref-tools-mcp": {
"serverUrl": "https://api.ref.tools/mcp"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
https://api.ref.tools/mcpIn ChatGPT: Settings, Connectors, Add custom connector, then paste this URL. Works in any client that supports remote servers.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the ref-tools-mcp block.
About
Ref is a Model Context Protocol server that gives an AI coding tool or agent access to documentation for APIs, services, libraries and similar resources. Its tools are built to match how models search: the agent runs a search, picks a few results, and reads them in more depth, using as little context as possible.
The ref_search_documentation tool searches public documentation on the web or GitHub, as well as private resources such as repos and PDFs. The ref_read_url tool fetches a URL and converts it to markdown. The server uses MCP sessions to track search history, so repeated searches do not return repeated results, and page reads return the most relevant sections, about 5k tokens. The project is aimed at coding agents such as Claude Code, and the code is released under the MIT license.
Written from the project's README and checked against it.
Tools it gives your assistant
ref_search_documentationSearches public documentation on the web or GitHub, and private resources like repos and PDFs.ref_read_urlFetches a URL and converts the content to markdown for reading.
What you need
- A Ref API key from ref.tools
- Node.js and npm, since the stdio setup runs through npx
| Setting | Needed | What it is |
|---|---|---|
X-Ref-Api-KeyHeader | Optional | API key for authentication |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Search the Figma docs for how to post a comment through the REST API
- Read this documentation URL and summarize the authentication section
- Find best practices for using the n8n Code node with multiple inputs
Good to know
- This repo contains the legacy stdio server; streamable HTTP is recommended.
- Page reads are trimmed to the most relevant sections, about 5k tokens.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to ref-tools-mcp
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
ref-tools-mcp: common questions
Can Ref search private documentation?
Yes. The search tool can search private resources such as repos and PDFs, according to the source.
Why does Ref try to use fewer tokens?
The source says more context can make models perform worse and that tokens cost money, so Ref aims to return only the context an agent needs.
Which server type should I use?
The source recommends the streamable HTTP server. The stdio server in this repo is described as legacy.
How do I install ref-tools-mcp?
In Claude Code run claude mcp add --transport http ref-tools-mcp https://api.ref.tools/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is ref-tools-mcp the official server?
ref-tools-mcp is published by ref.tools from its verified domain in the official MCP Registry.
Is ref-tools-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ref-tools-mcp safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ref-tools-mcp?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does ref-tools-mcp work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
