Skip to main content
Glama

claude-mcp-server

MCP server wrapping Claude CLI — lets Cursor (or any MCP host) use Claude as a sub-agent.

Install

One command — no clone needed:

bash <(curl -fsSL https://raw.githubusercontent.com/tal-hason/claude-mcp-server/main/install.sh)

This downloads the latest pre-built release, installs the Cursor extension, and registers the MCP server.

Prerequisites: Node.js >= 20, jq, curl, Claude CLI

Install from source

git clone https://github.com/tal-hason/claude-mcp-server.git
cd claude-mcp-server
./setup.sh

Requires npm in addition to the prerequisites above.

Custom install location

CLAUDE_MCP_DIR=~/my-tools/claude-mcp bash <(curl -fsSL https://raw.githubusercontent.com/tal-hason/claude-mcp-server/main/install.sh)

Uninstall

rm -rf ~/.local/share/claude-mcp-server
jq 'del(.mcpServers["claude-cli"])' ~/.cursor/mcp.json > /tmp/mcp.json && mv /tmp/mcp.json ~/.cursor/mcp.json
cursor --uninstall-extension thason.claude-cli-panel

Related MCP server: claude-bridge

Usage

Single tool: claude_prompt with an optional mode parameter.

claude_prompt({ prompt: "Review this code", mode: "reviewer" })

Modes

Mode

Default effort

Role

architect

high

Architecture analysis — boundaries, coupling, gaps

planner

high

Plan creation — incremental steps, acceptance criteria

reviewer

max

Code review — multi-lens, severity-graded

explorer

low

Quick research — concise, evidence-cited

executor

high

Implementation — hexagonal, small batches

Without mode, the tool passes through raw (caller controls everything).

Parameters

Param

Required

Description

prompt

Yes

The prompt to send

mode

No

Dispatch mode (see table above)

model

No

Exact model name (e.g. claude-sonnet-5)

effort

No

low / medium / high / xhigh / max

systemPrompt

No

System prompt override

sessionId

No

Resume a previous session

cwd

No

Working directory for Claude CLI

How it works

  1. Cursor calls the MCP tool via stdio

  2. The server resolves mode defaults (effort, appended system prompt)

  3. Spawns claude --print --output-format stream-json with the resolved args

  4. Parses streaming output, sends MCP progress notifications

  5. Returns the final text result + session ID

Claude CLI reads ~/.claude/CLAUDE.md as global context regardless of cwd. Mode system prompts are appended (via --append-system-prompt), never replacing CLAUDE.md.

Files

File

Purpose

server.js

MCP entry point — serveStdio, tool registration

modes.js

Dispatch mode definitions (effort + system prompt per role)

cli-executor.js

Spawn Claude CLI, parse stream-json, callbacks

stream-parser.js

Parse individual stream-json lines

A
license - permissive license
-
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
5Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    A server implementation for the Model Context Protocol (MCP) that allows Claude AI to execute commands through a command-line interface, enabling direct system interactions from within Claude.
  • F
    license
    -
    quality
    D
    maintenance
    An MCP server wrapping the Cursor CLI agent, enabling Claude Code and other MCP clients to delegate tasks to Cursor's AI agent for file writing, bash commands, and codebase queries.

View all related MCP servers

Related MCP Connectors

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

  • Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.

  • Augments MCP Server - A comprehensive framework documentation provider for Claude Code

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tal-hason/claude-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server