# MCP Reference Server

> MCP Reference Server is an open-source MCP server for developer tools. Test bench MCP server for checking clients and spec proposals against a live demo. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, Web
- **Repository:** https://github.com/markusvankempen/mcp-reference-server
- **MCP Registry name:** io.github.markusvankempen/mcp-reference-server
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Rather than a useful integration, this is a deliberately instrumented fixture. It models a small ticketing system with 22 tools, 3 resources and 5 prompts so client authors can see how their software handles real MCP behaviour: tool annotations, isError results, rate limits that return a retry delay, PII redaction in query results, and tools/list_changed notices when an admin changes a gate.

Its distinctive feature is a control plane that toggles 15 MCP specification extensions and SEP prototypes, among them groups, skills, tasks and events, so you can flip one and watch how a client copes. The README warns that this behaviour is prototype code for testing and that the official specification is authoritative.

It runs over stdio, SSE or Streamable HTTP from one codebase, with three auth modes (off, write, all), API keys and optional users. Browser pages cover health, a read-only smoke test, an admin desk, a call log and a tool list with a Try button, and the same command doubles as a command-line client for a running server.

## Features

- **22 demo tools:** Intent-named tools around a ticket queue, with annotations and error conventions.
- **SEP control plane:** Toggle 15 spec extensions and prototypes to test client resilience.
- **Three transports:** stdio, SSE and Streamable HTTP from one codebase.
- **Auth and gates:** Auth modes, API keys, per-tool gates and rate limiting.
- **Live observability:** A log page with counters, error log and call trace.
- **CLI client:** The same command can call tools and check a running server.

## Good for

- Check an MCP client against skills, tasks and events extensions
- Test how a client handles auth failures and rate limits
- Learn MCP server design from a worked example
- Audit client behaviour when the tool list changes mid-session

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-reference-server --env MCP_API_KEY='<MCP_API_KEY>' --env MCP_USERS='<MCP_USERS>' -- npx -y mcp-reference-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-reference-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-reference-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "mcp-reference-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-reference-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-reference-server --env MCP_API_KEY='<MCP_API_KEY>' --env MCP_USERS='<MCP_USERS>' -- npx -y mcp-reference-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-reference-server]
command = "npx"
args = ["-y", "mcp-reference-server"]
env = { MCP_API_KEY = "<MCP_API_KEY>", MCP_USERS = "<MCP_USERS>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-reference-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e MCP_API_KEY='<MCP_API_KEY>' -e MCP_USERS='<MCP_USERS>' mcp-reference-server npx -- -y mcp-reference-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-reference-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-reference-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-reference-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-reference-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-reference-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-reference-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-reference-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-reference-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-reference-server"
      ],
      "env": {
        "MCP_API_KEY": "<MCP_API_KEY>",
        "MCP_USERS": "<MCP_USERS>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 5 of 8 tools change data. From the server's own tool labels and tool names; not verified by us.

- `create_ticket` (name suggests: changes): Creates a ticket; can return a task handle.
- `run_query` (name suggests: changes): Queries a schema such as tickets or customers.
- `get_schema` (name suggests: reads): Describes available schemas.
- `describe_server` (name suggests: reads): Describes the server.
- `update_settings` (name suggests: changes): Applies a settings patch.
- `draft_reply` (name suggests: changes): Asks the client to draft a reply through sampling.
- `list_workspace_roots` (name suggests: reads): Lists the client's workspace roots.
- `run_test_job` (name suggests: changes): Runs a test job that can send progress notifications.

## FAQ

### Is MCP Reference Server a production server?

No. The README calls it a reference and demo, and says its SEP behaviour is a test prototype.

### How do I run MCP Reference Server?

Run npx mcp-reference-server for stdio, or set MCP_MODE=http to serve /health, /test, /admin and /mcp.

### Does MCP Reference Server need authentication?

Auth is off by default; AUTH_MODE can gate write tools or every tool.

### Which transports are supported?

stdio, SSE and Streamable HTTP.

### Is MCP Reference Server free?

Yes. MCP Reference Server is open source, so you can use and self-host it for free.

### How do I add MCP Reference Server to Claude Code?

Run this command in your terminal: claude mcp add mcp-reference-server --env MCP_API_KEY='<MCP_API_KEY>' --env MCP_USERS='<MCP_USERS>' -- npx -y mcp-reference-server

### What are the best alternatives to MCP Reference Server?

The closest alternatives to MCP Reference Server are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/mcp-reference-server
