Discover and explore top open-source AI tools and projects—updated daily.
Stop AI hallucinations with token-efficient documentation search
Top 63.0% on SourcePulse
Ref MCP is a ModelContextProtocol server designed to provide AI coding tools and agents with efficient access to public and private documentation, aiming to reduce hallucinations and minimize token usage. It targets AI developers and agents that require up-to-date information on APIs, services, and libraries, offering a token-efficient search and retrieval mechanism.
How It Works
Ref MCP implements a session-based approach to track search trajectories and optimize context. It features intelligent filtering to avoid returning duplicate results across similar searches and a mechanism to extract only the most relevant 5k tokens from documentation pages, discarding irrelevant sections. This targeted retrieval is designed to combat the "context rot" and cognitive degradation observed in LLMs when presented with excessive or irrelevant information, thereby improving agent performance and reducing API costs.
Quick Start & Requirements
npx ref-tools-mcp@latest
(for stdio server) or configure via HTTP.npm install
, npm run dev
.Highlighted Details
ref_search_documentation
and ref_read_url
tools for agents.Maintenance & Community
The project is developed by ref-tools. Further community or roadmap information is not detailed in the README.
Licensing & Compatibility
The project is licensed under the MIT license, permitting commercial use and integration with closed-source applications.
Limitations & Caveats
The README mentions a "legacy stdio server" and recommends the "streamable-http server," suggesting potential differences in features or support between the two. The effectiveness of token minimization relies on the accuracy of the relevance filtering.
2 weeks ago
Inactive