Skip to content
← All MCP servers

Is the Ref MCP server safe? What it can reach

What the Ref MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Ref is a documentation search server from the Ref team at ref.tools. The README recommends the hosted streamable HTTP endpoint with an API key, and the repo holds the older local stdio server. It has two tools, both read-only, and neither changes anything in your accounts. Treat its fetch tool and private search as the parts to watch.

Who maintains it

ImplementationKindStatus
ref-tools-mcp (Ref, ref-tools/ref-tools-mcp)Officialactive

It runs as a local process on your machine or as a hosted remote server. The documented endpoint is https://api.ref.tools/mcp.

How it signs in

A Ref API key from ref.tools/signup. The hosted setup in the README passes it as an apiKey query parameter, and the stdio server reads REF_API_KEY.

What its tools can do

KindTools
Readref_search_documentation, ref_read_url
Writenone documented
Can’t be undonenone documented

With an OpenAI client, Ref exposes the same tools as search and fetch.

Built-in limits

OptionWhat it does
Stdio serverThe legacy local server takes the key from the REF_API_KEY environment variable, which keeps it out of a URL.
Tool allowlist in your clientBoth tools only read, so you can allow ref_search_documentation and require approval for ref_read_url.

The risks

  • ref_read_url fetches any URL the agent gives it, so an injected instruction could request an attacker’s URL with data placed in the query string.
  • ref_search_documentation can search private resources such as repos and PDFs, so private material you connect to Ref is searched and read through Ref’s service.
  • The hosted setup puts the API key in the URL query, where it can end up in config files, shell history and logs.
  • Pages that Ref returns are untrusted web text, and they can carry instructions aimed at your agent.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --env REF_API_KEY=... ref -- npx ref-tools-mcp@latest

Claude Code names MCP tools mcp__ref__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "ask": [
      "mcp__ref__ref_read_url"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.ref]
command = "npx"
args = ["ref-tools-mcp@latest"]
env_vars = ["REF_API_KEY"]

Checklist

  • Prefer the stdio setup so the key stays in an environment variable.
  • Do not connect private repos or PDFs unless you want Ref to search them.
  • Set ref_read_url to ask in your client.
  • Rotate the API key if a config file with the hosted URL was shared.

Checked against the vendor documentation on November 25, 2026. ref-tools-mcp README · Ref Context quick start

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing