ref-tools avatar

Ref Tools Mcp

ref-tools/ref-tools-mcp

This server tackles a real problem with AI coding agents: they often pull in way too much documentation context, which both costs tokens and degrades model performance through context rot. It provides two tools for searching and reading technical docs, both public and private. The smart bit is how it handles sessions: repeated searches filter out already-seen results, and when reading a page it uses your search history to return only the relevant 5k tokens instead of dumping 20k+ tokens of an entire docs site into context. Works over stdio or HTTP transport, and the tools automatically adapt their names when used with OpenAI's deep research client.

GitHub stars
1.1K
tools
2
auth
Secret needed
transport
STDIO
env var
1
last updated
Sep 9, 2025

Tools

2 tools

Public tool metadata for what this MCP can expose to an agent.

ref_search_documentationSearch for documentation on the web or github as well from private resources like repos and pdfs. Use Ref 'ref_read_url' to read the content of a url.1 params

Search for documentation on the web or github as well from private resources like repos and pdfs. Use Ref 'ref_read_url' to read the content of a url.

Parameters* required
querystring
Query for documentation. Should include programming language and framework or library names. Searches public only docs by default, include ref_src=private to search a user's private docs.
ref_read_urlRead the content of a url as markdown. The EXACT url from a 'ref_search_documentation' result should be passed to this tool.1 params

Read the content of a url as markdown. The EXACT url from a 'ref_search_documentation' result should be passed to this tool.

Parameters* required
urlstring
The URL of the webpage to read.

Sponsors

Configuration

REF_API_KEY*secret

Your API key for Ref

Readme

Documentation for your agent smithery badge Website License npm version

Ref MCP

A ModelContextProtocol server that gives your AI coding tool or agent access to documentation for APIs, services, libraries etc. It's your one-stop-shop to keep your agent up-to-date on documentation in a fast and token-efficient way.

For more see info ref.tools

Agentic search for exactly the right context

Ref's tools are designed to match how models search while using as little context as possible to reduce context rot. The goal is to find exactly the context your coding agent needs to be successful while using minimum tokens.


View the full README on GitHub

Details

Repository
github.com/ref-tools/ref-tools-mcp
Category
Search & Web Crawling
Package
ref-tools-mcp
Transport
STDIO
Auth
Required
Registry
MCP registry, active

More from ref-tools

Related Search & Web Crawling MCP servers

View all
1ref-tools avatarRef Tools Mcpref-tools/ref-tools-mcpToken-efficient search for coding agents over public and private documentation.1.1Kstars
2gongrzhe avatarGmailgongrzhe/gmail-mcp-serverProvides Gmail integration with auto authentication, enabling email send, read, search, label management, and batch operations via MCP.1.1Kstars
3jae-jae avatarFetcherjae-jae/fetcher-mcpFetch web page content using a Playwright headless browser with intelligent content extraction and Markdown/HTML output.1Kstars
4karanb192 avatarReddit Mcp Buddykaranb192/reddit-mcp-buddySearch, browse, and analyze Reddit; optional posting. Needs existing approved Reddit API access.893stars
5cookjohn avatarZoterocookjohn/zotero-mcpProvides local AI access to search, retrieve, and cite items from your Zotero library via Streamable HTTP.784stars
6sylphlab avatarPDF Readersylphlab/pdf-reader-mcpProvides a production-ready MCP server to extract text, images, and metadata from PDFs via parallel processing across multiple sources.711stars