MCP Catalogs
Homeref-tools-mcp screenshot

ref-tools-mcp

by ref-tools·1,104·Score 54

Ref MCP provides token-efficient API documentation search tools to reduce context rot and minimize costs.

developer-toolsai-llmsearch
68
Forks
5
Open issues
this month
Last commit
2d ago
Indexed

Overview

Ref MCP is a Model Context Protocol server that enables AI coding agents to efficiently search and retrieve documentation for APIs, libraries, and services. The server uses innovative techniques to minimize token usage by filtering search results and extracting only the most relevant sections of documentation pages. This approach helps reduce context rot and control API costs by avoiding the inclusion of unnecessary tokens.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:AI coding agents searching API documentation without overwhelming context windows
you:Development teams maintaining up-to-date references for multiple services
you:Cost reduction by minimizing token usage when fetching documentation
you:How does Ref MCP reduce token usage?
you:What documentation sources does Ref support?

When to choose this

Choose Ref MCP when your coding agent needs efficient access to documentation and you're willing to use a cloud service that minimizes token usage and context rot.

When NOT to choose this

Don't choose Ref if you need offline-only access, have concerns about vendor lock-in, or require handling of highly sensitive documentation that can't be shared with external services.

Tools this server exposes

2 tools extracted from the README
  • ref_search_documentationquery: string

    A powerful search tool to check technical documentation.

  • ref_read_urlurl: string

    Fetches content from a URL and converts it to markdown.

Comparable tools

docs-mcpweb-scraper-mcpduckduckgo-search-mcpperplexity-mcp

Installation

Installation Options

Streamable HTTP (Recommended)

Add to your Cursor configuration:

"Ref": {
  "type": "http",
  "url": "https://api.ref.tools/mcp?apiKey=YOUR_API_KEY"
}

stdio (Legacy)

Add to your Cursor configuration:

"Ref": {
  "command": "npx",
  "args": ["ref-tools-mcp@latest"],
  "env": {
    "REF_API_KEY": <sign up to get an api key>
  }
}

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "ref-tools": {
      "command": "npx",
      "args": ["ref-tools-mcp@latest"]
    }
  }
}

FAQ

How does Ref MCP reduce token usage?
Ref MCP filters search results to avoid duplicates and extracts only the most relevant 5k tokens from documentation pages, instead of fetching entire pages which could contain 20k+ tokens of mostly irrelevant content.
What documentation sources does Ref support?
Ref supports searching public documentation on the web, GitHub repositories, and private resources like repositories and PDFs. It can fetch content from any URL provided by its search results.

Compare ref-tools-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.