Claude Code MCP Server
MCP server by yuya373 Verified · npm:claude-code-mcp-server
Claude Code MCP Server runs Claude Code sessions inside Emacs and gives Claude Code access to open buffers, LSP data and diff tools through an MCP server. It is built for Emacs users who want Claude Code in their editor.
Install Claude Code MCP Server
Built from the published package, never by AI.
claude mcp add claude-code-mcp-server -- npx -y claude-code-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"claude-code-mcp-server": {
"args": [
"-y",
"claude-code-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install Claude Code MCP Server in Claude Desktop
{
"mcpServers": {
"claude-code-mcp-server": {
"args": [
"-y",
"claude-code-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"claude-code-mcp-server": {
"args": [
"-y",
"claude-code-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add claude-code-mcp-server -- npx -y claude-code-mcp-server{
"mcpServers": {
"claude-code-mcp-server": {
"args": [
"-y",
"claude-code-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Claude Code MCP Server in Antigravity CLI
gemini mcp add claude-code-mcp-server npx -y claude-code-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the claude-code-mcp-server block.
About
Claude Code Emacs runs Claude Code AI coding sessions inside Emacs. Each project gets its own Claude Code buffer, and prompts can reference project files with @ completion. Transient menus put the main commands behind C-c c, and custom commands can be defined in .claude/commands/*.md files.
The MCP server is installed from npm as claude-code-mcp-server and registered with Claude Code using claude mcp add-json. Through it, Claude Code can list and read open buffers, query LSP diagnostics and references, compare files and apply patches. Buffer changes and diagnostics are sent to Claude Code as events. The project is aimed at Emacs users who want Claude Code inside their editor.
Written from the project's README and checked against it.
Tools it gives your assistant
Buffer operationsLists and reads open buffers and gets the selected text.LSP integrationGets diagnostics, finds definitions and references, and describes symbols.Diff toolsCompares files, views git changes and applies patches.Real-time eventsSends buffer changes and diagnostics to Claude Code automatically.Automatic reconnectionSessions re-register and reconnect after Emacs restarts.
What you need
- Emacs 28.1 or later
- Claude Code CLI
- Node.js 16 or later
- projectile, vterm, transient and markdown-mode packages
Try asking
- Show the current diagnostics in this buffer and suggest fixes.
- Find the definition and references of the symbol at point.
- Compare these two files and summarize the differences.
Good to know
- LSP features need the optional lsp-mode package (9.0.0+).
- MCP WebSocket communication needs the optional websocket package (1.15+).
- Scroll mode needs extra Claude Code keybindings for shift+up and shift+down.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Claude Code MCP Server
All alternatives →Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.
Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.
Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.
Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.
VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.
Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.
Compare with Oh My Posh Validator, Sim or Omnara
Claude Code MCP Server: common questions
Which Emacs version does it need?
The source says Emacs 28.1 or later. It also lists Node.js 16 or later for the MCP part.
How does Claude Code connect to Emacs?
The MCP server is registered with Claude Code as a stdio server. Each Claude Code session keeps its own WebSocket connection, so several agents can run in one project.
Does it reconnect if Emacs restarts?
Yes. Running sessions, including background agents, re-register themselves and reconnect automatically.
How do I install Claude Code MCP Server?
In Claude Code run claude mcp add claude-code-mcp-server -- npx -y claude-code-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Claude Code MCP Server the official server?
Claude Code MCP Server is published by npm:claude-code-mcp-server from its verified domain in the official MCP Registry.
Is Claude Code MCP Server free?
The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.
Is Claude Code MCP Server safe to use?
It scores 66 of 100. Grades: maintenance B, licence C, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Claude Code MCP Server?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does Claude Code MCP Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
