Castor logo

Castor

Routes coding-agent file, search, edit, and test tasks to a local OpenAI-compatible model.

Install Castor

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "castor": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-castor"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio castor -- npx -y mcp-castor

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y mcp-castor

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Castor MCP server lets Claude Code, Cursor, Claude Desktop, and other MCP clients delegate repository work to a model running on your GPU. It handles file reading, grepping, edits, test execution, and log processing locally, returning a shorter verified result to the cloud model that performs planning. Castor works with OpenAI-compatible engines such as vLLM, llama.cpp, LM Studio, SGLang, and Ollama, with automatic discovery on its default local endpoint. Reach for it when you want to reduce cloud token usage while keeping a frontier model responsible for architecture and decisions.

Use cases

  • Delegate repository searches to a local GPU model
  • Run edits and tests without sending raw logs to a cloud model
  • Reduce cloud token usage during coding-agent sessions
  • Connect a coding agent to an OpenAI-compatible local engine

Key features

  • Local file reading, grep, editing, and test execution
  • OpenAI-compatible engine support
  • Automatic local endpoint discovery
  • Workspace containment and command safeguards
  • VRAM-aware task scheduling
  • Usage reporting with castor stats

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

4/4 checks healthy over the last 17d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · mcp-castor (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars15Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Castor works

What Castor does

Castor separates planning from repository operations for coding agents. A cloud model can continue to handle architecture and reasoning, while Castor sends routine work to a model on the developer's own GPU. That work includes reading files, searching with grep, editing files, running tests, and processing command output.

Instead of forwarding every raw file dump, terminal log, and repeated context block to the cloud model, Castor returns a shorter result after local execution. This is intended to reduce token consumption and keep the cloud context focused on decisions rather than mechanical operations.

How it works

Castor connects MCP clients to an OpenAI-compatible local inference endpoint. Engines running through vLLM, llama.cpp, LM Studio, SGLang, Ollama, or another compatible /v1 API can provide the local model. An engine at 127.0.0.1:18020 is discovered automatically; another endpoint can be selected with CASTOR_BASE_URL.

The implementation is written in Rust. Tool calls run in-process, and longer operations can return a wait hook so the cloud agent can pause until the task completes. A token-budgeted scheduler limits concurrent work against available VRAM, while a stream guard stops runaway output loops.

Setup and configuration

The npm package can install Castor and register it with detected MCP clients:

Terminal
npx -y mcp-castor install --client all

For an engine on a different endpoint, set the base URL before starting the client:

server.ts
export CASTOR_BASE_URL="http://127.0.0.1:1234/v1"

The project also documents manual MCP configuration, engine profiles, and serving-engine-specific setup for llama.cpp. After installation and engine configuration, the coding agent can invoke Castor during normal work.

Tools and capabilities

  • Read files locally for coding tasks
  • Search repositories with grep
  • Edit files through the local execution path
  • Run tests and return verified results
  • Process terminal output without sending every raw log to the cloud
  • Enforce workspace containment and block path escapes, symlink tricks, and destructive shell commands
  • Reject oversized prompts before execution
  • Report usage through castor stats

Limitations and notes

Castor depends on a locally available model endpoint that implements the OpenAI-compatible API. The cloud model is still used for planning and architecture; Castor is intended to offload execution-oriented work rather than replace that model. The project is licensed under AGPL-3.0, and commercial dual licensing is available for proprietary embedding. Network-deployed modifications must publish their source under the stated license terms.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Castor

Castor is an MCP server that connects coding agents such as Claude Code, Cursor, and Claude Desktop to local OpenAI-compatible engines. Its main tools handle file reading, grep searches, editing, test execution, and terminal-output processing on your GPU, returning concise verified results to the cloud model.

Install Castor with `npx -y mcp-castor install --client all`. The command registers it with every MCP client it detects, without requiring a configuration file. You then point Castor at a compatible local engine, using the default endpoint or `CASTOR_BASE_URL`.

Castor supports OpenAI-compatible engines, including vLLM, llama.cpp, LM Studio, SGLang, and Ollama. An engine listening at `127.0.0.1:18020` is detected automatically; set `CASTOR_BASE_URL` when the service uses another endpoint.

Yes, Castor works with Cursor. The installer can register Castor with detected MCP clients, and Cursor is listed among the supported cloud clients. The local execution engine must expose an OpenAI-compatible API.

Castor runs repository grunt work locally, including reading files, grep searches, edits, tests, and terminal-output processing. The cloud model continues to handle planning and architecture, while Castor sends back a shorter verified result instead of every raw output.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCastor AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/castor?style=directory)](https://allmcps.com/mcp/castor)
HTML Embed
<a href="https://allmcps.com/mcp/castor"><img src="https://allmcps.com/api/badge/castor?style=directory" alt="Castor on AllMCPs" /></a>