Skip to main content
The Raysurfer MCP server exposes code caching as native tools inside Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, and any MCP-compatible client. No install required — runs via npx.

Setup

Get your API key from the dashboard.

Claude Code

Add --scope user to make it available across all projects:

Claude Desktop

Add to your claude_desktop_config.json:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Cursor

Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):

VS Code

Add to .vscode/mcp.json:

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

Project-Level (.mcp.json)

Add to your project root to share with your team:

Verify Installation

For Claude Code, check the server is running:
You should see raysurfer listed. Then ask Claude:
Search the Raysurfer cache for code that generates a quarterly report.
Claude will call raysurfer_search and show you the results.

Tools

The server exposes 4 tools that Claude can call directly: Search for cached code matching a task description.

raysurfer_upload

Upload code from a successful execution.

raysurfer_vote

Vote on cached code usefulness.

raysurfer_patterns

Get proven task-to-code mappings.

Resources