Mmcp.market

Ref Tools MCP server

by ref-tools·io.github.ref-tools/ref-tools-mcp·v3.0.1·1.2k stars

Token efficient search for coding agents over public and private documentation.

C69/100grade C
What users say
No reviews yet
Be the first
Safety scan
C69/100

full report

Adoption
Growing

1.2k stars

Reviews

Write one

Nobody has reviewed Ref Tools yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Ref Tools tools

No tool declarations could be read from the package source. They show once the server is installed.

Public scan report

scanner v0.1.10 · 2026-10-01 · same rubric, same numbers if you re-run it

2 medium
  • Code scan2 source files scanned15/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 0 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year9/10

Findings (2)

  • mediumeval / new Function usedexec.eval
    dist/index.cjs: … try { var makeValidate = new Function( "self", "RULES"…
  • mediumHeavily hex-escaped string (obfuscation)obf.hex-density
    dist/index.cjs: … "type": "_sbcs", "chars": "\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621…
Overall 69/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

Install Ref Tools in Claude Code, Cursor or VS Code

Runs npx -y ref-tools-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add ref-tools-mcp -- npx -y ref-tools-mcp
Add to Cursor

What the publisher says

From the Ref Tools repository's README, as published. We do not edit it. Read it on GitHub

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.

Depending on the complexity of the prompt, LLM coding agents like Claude Code will typically do one or more searches and then choose a few resources to read in more depth.

For a simple query about Figma's Comment REST API it will make a couple calls to get exactly what it needs:

SEARCH 'Figma API post comment endpoint documentation' (54 tokens)
READ https://www.figma.com/developers/api#post-comments-endpoint (385 tokens)

For more complex situations, the LLM will try to refine it's prompt as it reads results. For example:

SEARCH 'n8n merge node vs Code node multiple inputs best practices' (126)
READ https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.merge/#merge (4961)
READ https://docs.n8n.io/flow-logic/merging/#merge-data-from-multiple-node-executions (138)
SEARCH 'n8n Code node multiple inputs best practices when to use' (107)
READ https://docs.n8n.io/code/code-node/#usage (80)
SEARCH 'n8n Code node access multiple inputs from different nodes' (370)
SEARCH 'n8n Code node $input access multiple node inputs' (372)
READ https://docs.n8n.io/code/builtin/output-other-nodes/#output-of-other-nodes (2310)

Ref takes advantage of MCP sessions to track search trajectory and minimize context usage. There's a lot more ideas cooking but here's what we've implemented so far.

1. Filtering search results

For repeated similar searches in a session, Ref will never return repeated results. Traditionally, you dig farther in to search results by paging to the next result but this approach allows the agent to page AND adjust the prompt at the same time.

2. Fetching the part of the page that matters

When reading a page of documentation, Ref will use the agent's session search history to dropout less relevant sections and return the most relevant 5k tokens. This helps Ref avoid a big problem with standard fetch() web scraping which is when it hits a large documentation page you can easily end up pull in 20k+ tokens into context, most of which are irrelevant.

Why does minimizing tokens from documentation context matter?

1. More context makes models dumber

It's well documented that as of July 2025 that models get dumber as you put in more tokens. You might have heard about how models are great with long context now and that's kind of true but not the whole picture. For a quick primer on some research, checkout this video from the team at Chroma.

2. Tokens cost $$$

Imagine you are using Claude Opus as a background agent and you start by having the agent pull in documentation context and suppose it pulls in 10000 tokens of context with 4000 being relevant and 6000 being extra noise. At API pricing, that 6k tokens cost about $0.09 PER STEP. If one prompt ends up taking 11 steps with Opus, you've spent $1 for no reason.

Setup

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Ref Tools: common questions

Is Ref Tools MCP server safe?
With care: it is graded C, so read the findings first (69/100). Read the Ref Tools safety report
How do I install Ref Tools?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Ref Tools need an API key?
Yes. The registry entry asks for REF_API_KEY.
Is Ref Tools maintained?
The last commit was 12 days ago (2026-10-01). The latest release is v3.0.1.
What can I use instead of Ref Tools?
Servers from other publishers that do the same job: Ref Tools MCP server, GitHits MCP server and Documentation MCP server. Compare all Ref Tools alternatives.

Alternatives to Ref Tools

Same job from other publishers: the closest match first, then the best rated.

All Ref Tools alternatives →
  • Ref Tools
    Token-efficient search for coding agents over public and private documentation.
    A
  • GitHits
    Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.
    A
  • Documentation
    Local-first document management and semantic search for AI coding agents
    A
  • Repomix
    Pack local or remote codebases into AI-friendly files that LLMs and coding agents can read or search
    A
  • Sui Knowledge Base (kapa.ai)
    Semantic search across Sui documentation and knowledge sources, powered by kapa.ai
    A

More from ref-tools →