What is Ref MCP?
Ref MCP is a Model Context Protocol server that gives your AI coding tool or agent access to documentation for APIs, services, and libraries. It is designed for developers using LLM-based coding agents who need fast, token‑efficient access to up‑to‑date documentation.
How to use Ref MCP?
Install via npm (npx ref-tools-mcp) or connect via the streamable HTTP server at api.ref.tools/mcp. Use the tools ref_search_documentation (with a query string) and ref_read_url (with a URL) to search and fetch documentation.
Key features of Ref MCP
- Deduplicates search results within a session.
- Returns only the most relevant 5k tokens per page.
- Reduces context rot by minimizing irrelevant tokens.
- Supports both streamable HTTP and stdio transports.
- Works as a documentation source for OpenAI deep research.
- Tracks search trajectory across MCP sessions.
Use cases of Ref MCP
- Querying API documentation for a specific endpoint.
- Fetching library usage examples with minimal token cost.
- Keeping an AI coding agent updated on multi‑step workflows.
- Reducing costs by pulling only relevant parts of large docs.
- Supporting research workflows that need repeated refined searches.
评论