Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 66
  • 67 stars
  • 42 a week
  • GPL-3.0
  • Updated

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-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Claude Code MCP Server in Claude Code

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

A

No 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 JanDeDobbeleer
100

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.

AAA Remote 24k
Sim simstudioai
100

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.

AAA Remote 30k
Omnara omnara-ai
98

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.

AAA Remote 3.5k
strata Klavis-AI
95

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.

AAA Remote 5.8k
voicemode mbailey
95

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.

AAA Local 1.5k
OpenWork MCP Gateway different-ai
94

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.

AFA Remote 25k

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.

Claude Code MCP Server Install

Add to stack

Loading.