This package provides seamless integration with Claude Code, allowing you to run AI-powered coding sessions directly in your Emacs environment.
{
"mcpServers": {
"claude-code-emacs": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This package provides seamless integration with Claude Code, allowing you to run AI-powered coding sessions directly in your Emacs environment.
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
GPL-3.0. View license →
Is it maintained?
Last commit 40 days ago. 61 stars.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Dynamic problem-solving through sequential thought chains
A Model Context Protocol server for searching and analyzing arXiv papers
An open-source AI agent that brings the power of Gemini directly into your terminal.
The official Python SDK for Model Context Protocol servers and clients
MCP Security Weekly
Get CVE alerts and security updates for Claude Code Emacs and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Run Claude Code AI coding sessions directly in Emacs with powerful MCP integration.
;; Add to your init.el
(add-to-list 'load-path "/path/to/claude-code")
(require 'claude-code)
(global-set-key (kbd "C-c c") 'claude-code-transient)
# Install MCP server globally
npm install -g claude-code-mcp-server
# Configure Claude Code to use MCP
claude mcp add-json emacs '{
"type": "stdio",
"command": "claude-code-mcp"
}'
Now run M-x claude-code-run to start a session!
@ in prompts to reference project filesC-c c for the main menu with all commands.claude/commands/*.md.claude-code.prompt.md file per project for persistent contextClaude Code can directly interact with your Emacs environment:
| Key | Action |
|-----|--------|
| C-c c | Open main transient menu |
| C-u M-x claude-code-run | Start with options (model, resume, etc.) |
| Key | Action |
|-----|--------|
| C-c C-q | Close Claude Code window |
| C-c C-k | Send Escape key |
| C-c C-o | Send Ctrl+O (toggle expand) |
| C-c C-e | Send Ctrl+E (toggle expand more) |
| C-c C-d | Send Ctrl+T (toggle TODO display) |
| C-c C-n | Send Tab (toggle thinking mode) |
| C-c RET | Send Return key |
| C-c TAB | Send Shift+Tab (toggle auto-accept) |
| C-c C-t | Open transient menu |
| Key | Action |
|-----|--------|
| C-c C-s | Send section at point |
| C-c C-r | Send selected region |
| C-c C-o | Open Claude Code session |
| C-c C-t | Open prompt transient menu |
| @ | File completion |
| Key | Action |
|-----|--------|
| 1/y | Send 1 (yes) |
| 2 | Send 2 |
| 3 | Send 3 |
| k | Send Escape |
| e | Send Ctrl+E (toggle expand more) |
| o | Send Ctrl+O (toggle expand) |
| t | Send Ctrl+T (toggle TODO display) |
| h | Send Tab (toggle thinking mode) |
| g | Git & GitHub menu |
| / | Slash commands menu |
Each project gets a .claude-code.prompt.md file at the project root. When you open this file, it automatically positions at the end for quick prompt entry:
# Claude Code Prompts for my-project
This file contains prompts for Claude Code sessions.
## Example Prompts
Fix the bug in @src/utils.js where the parser fails on empty strings
---
Add unit tests for @src/api/auth.js
Open with M-x claude-code-open-prompt-file or p in transient menu.
M-x claude-code-fix-diagnostic
;; or press 'f' in transient menu
Create .claude/commands/refactor.md:
Refactor the following code: $ARGUMENTS
Execute with x in transient menu → select "refactor"
Press g in main menu for git commands:
g - commitp - pushr - review changesc - PR commentsprojectile, vterm, transient, markdown-modelsp-mode (9.0