# Ref Tools MCP (MCP server)

> Ref Tools MCP is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Token-efficient search for coding agents over public and private documentation. It has 1,177 GitHub stars, is released under the MIT license and runs locally with npx -y ref-tools-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.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/ref-tools/ref-tools-mcp |
| GitHub stars | 1,177 |
| License | MIT |
| Language | TypeScript |
| Transport | stdio, streamable-http |
| Packages | npm: ref-tools-mcp |
| Remote URL | https://api.ref.tools/mcp |
| Needs API key | yes |
| Official | yes |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code, Claude.ai, ChatGPT |
| Category | Developer tools |
| Latest release | none |
| Last commit | Sep 28, 2026 |
| MCP registry name | tools.ref/ref-tools-mcp |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ref-tools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ref-tools-mcp"
      ],
      "env": {
        "REF_API_KEY": "your-value"
      }
    }
  }
}
```

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --env REF_API_KEY=your-value --transport stdio ref-tools-mcp -- npx -y ref-tools-mcp
```

### Cursor (.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ref-tools-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ref-tools-mcp"
      ],
      "env": {
        "REF_API_KEY": "your-value"
      }
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

### VS Code (.vscode/mcp.json)

```json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "ref_api_key",
      "description": "REF_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "ref-tools-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ref-tools-mcp"
      ],
      "env": {
        "REF_API_KEY": "${input:ref_api_key}"
      }
    }
  }
}
```

### Claude Code (remote)

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

The same server is also hosted as a remote MCP endpoint, so nothing runs on your machine.

Config formats checked against the official docs on 2026-10-07.

## Environment variables

- `REF_API_KEY` (secret) (required): Your API key for Ref

## Tools

- `ref_search_documentation`: A powerful search tool to check technical documentation. Great for finding facts or code snippets.
- `query`: Query to search for relevant documentation. This should be a full sentence or question.
- `ref_read_url`: A tool that fetches content from a URL and converts it to markdown for easy reading with Ref.

## Similar MCP servers

- [Gemini CLI](https://appsgit.com/mcp-servers/gemini-cli): An open-source AI agent that brings the power of Gemini directly into your terminal. (107,240 stars, Apache-2.0)
- [Front-End Checklist](https://appsgit.com/mcp-servers/front-end-checklist): Review frontend code and live pages against 386 quality-gated web development rules. (74,390 stars, MIT)
- [Claude Flow](https://appsgit.com/mcp-servers/claude-flow): AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev. (74,016 stars, MIT, needs API key)
- [Codebase Memory](https://appsgit.com/mcp-servers/codebase-memory): Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens. (45,917 stars, MIT)
- [Bytedance Filesystem](https://appsgit.com/mcp-servers/bytedance-filesystem): MCP server for filesystem access. (39,206 stars, Apache-2.0)
- [GitHub](https://appsgit.com/mcp-servers/github): Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language. (33,414 stars, MIT, official, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/ref-tools-mcp
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
