Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

ref-tools-mcp

MCP server by ref-tools Verified · ref.tools

Ref MCP gives AI coding agents search and read access to public and private documentation while using few tokens. It is for developers who want agents to work from current API and library docs.

  • Score 94
  • 1.2k stars
  • MIT
  • Updated

Install ref-tools-mcp

Built from the published package, never by AI.

claude mcp add --transport http ref-tools-mcp https://api.ref.tools/mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install ref-tools-mcp in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the ref-tools-mcp block.

About

Ref is a Model Context Protocol server that gives an AI coding tool or agent access to documentation for APIs, services, libraries and similar resources. Its tools are built to match how models search: the agent runs a search, picks a few results, and reads them in more depth, using as little context as possible.

The ref_search_documentation tool searches public documentation on the web or GitHub, as well as private resources such as repos and PDFs. The ref_read_url tool fetches a URL and converts it to markdown. The server uses MCP sessions to track search history, so repeated searches do not return repeated results, and page reads return the most relevant sections, about 5k tokens. The project is aimed at coding agents such as Claude Code, and the code is released under the MIT license.

Written from the project's README and checked against it.

Tools it gives your assistant

  • ref_search_documentationSearches public documentation on the web or GitHub, and private resources like repos and PDFs.
  • ref_read_urlFetches a URL and converts the content to markdown for reading.

What you need

  • A Ref API key from ref.tools
  • Node.js and npm, since the stdio setup runs through npx
SettingNeededWhat it is
X-Ref-Api-KeyHeaderOptionalAPI key for authentication

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Search the Figma docs for how to post a comment through the REST API
  • Read this documentation URL and summarize the authentication section
  • Find best practices for using the n8n Code node with multiple inputs

Good to know

  • This repo contains the legacy stdio server; streamable HTTP is recommended.
  • Page reads are trimmed to the most relevant sections, about 5k tokens.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to ref-tools-mcp

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

ref-tools-mcp: common questions

Can Ref search private documentation?

Yes. The search tool can search private resources such as repos and PDFs, according to the source.

Why does Ref try to use fewer tokens?

The source says more context can make models perform worse and that tokens cost money, so Ref aims to return only the context an agent needs.

Which server type should I use?

The source recommends the streamable HTTP server. The stdio server in this repo is described as legacy.

How do I install ref-tools-mcp?

In Claude Code run claude mcp add --transport http ref-tools-mcp https://api.ref.tools/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is ref-tools-mcp the official server?

ref-tools-mcp is published by ref.tools from its verified domain in the official MCP Registry.

Is ref-tools-mcp free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is ref-tools-mcp safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to ref-tools-mcp?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does ref-tools-mcp work with ChatGPT?

Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.

ref-tools-mcp Install

Add to stack

Loading.