
Description
Ref MCP is a Model Context Protocol server that gives a coding agent access to documentation for public and private APIs, services and libraries. Its goal is to keep the agent up to date on documentation in a fast and token-efficient way. The search tools are designed to match how a model searches, using as little context as possible to reduce context rot. Ref uses the session's search history in two ways. First, it filters search results: for repeated similar searches in a session it never returns the same results twice, so an agent can page through results and refine its query at the same time. Second, when it reads a documentation page, it drops sections that are less relevant and returns the most relevant part, about 5,000 tokens, instead of a page that can run to 20,000 tokens or more. The README argues that large amounts of context can make models less accurate, and that extra tokens add cost on every step of an agent's work. It is for developers who use Claude Code or other MCP-compatible agents and want current library documentation without wasting the context window. The project is on GitHub under ref-tools/ref-tools-mcp, and the README links further information at ref.tools.…
Highlights
- Documentation for public and private libraries
- Never repeats results within a session
- Returns the most relevant part of a documentation page
- Reduces tokens spent on documentation context
- Works as an MCP server for coding agents
Ratings & Reviews
No ratings yet
Be the first to rate Ref.
People also visit

jDocmunch MCP
The leading, most token-efficient MCP server for documentation exploration
Ref FAQ
What is Ref MCP?
A Model Context Protocol server that gives a coding agent documentation for APIs and libraries in a token-efficient way.
Does it cover private libraries?
Yes. The README says it works with public or private libraries.
How does it save context?
It filters repeated search results within a session, and when reading a page it returns only the most relevant part, about 5,000 tokens.
Which agents can use it?
The README uses Claude Code as its example. It is built for coding agents that support MCP.
Why does minimizing tokens matter?
The README argues that models can perform worse with more context, and that extra tokens add cost on every step.
Where can I learn more?
The README links further information at ref.tools.
Where is the source?
On GitHub at ref-tools/ref-tools-mcp.
What are the best Ref alternatives?
Popular alternatives to Ref include idosal/git-mcp, jDocmunch MCP and context7-mcp. See all Ref alternatives



















