Emacs MCP Server
Model Context Protocol (MCP) server for Emacs. Enables generating and running elisp code in a running Emacs process.
Tools
The server exposes two tools:
generate_emacs_lisp_code: generates elisp for a given taskexecute_emacs_lisp_code: passes elisp to a running Emacs (viaemacsclient) to eval and execute it.
Invocation
The project is managed with uv. First, run uv sync to install all dependencies. Then source .venv/bin/activate to activate the resulting venv.
To run the MCP server in the inspector:
mcp dev emacs_mcp_server.py
To install the MCP server so that Claude Desktop can use it:
mcp install emacs_mcp_server.py
But you will have to edit the resulting JSON config in claude_desktop_config.json to include API keys and the full path to emacsclient. It should look something like this:
"Emacs-MCP-Server": {
"command": "/Users/haldar/.local/bin/uv",
"args": [
"run",
"--with",
"mcp[cli]",
"--with",
"smartfunc",
"mcp",
"run",
"/Users/haldar/repos/gh/emacs-mcp-server/emacs_mcp_server.py"
],
"env": {
"OPENAI_API_KEY": "sk-xxxx",
"EMACSCLIENT": "/your/path/to/emacsclient"
}
}
Emacs MCP Server
Project Details
- vivekhaldar/emacs-mcp-server
- Last Updated: 4/8/2025
Recomended MCP Servers
A MCP Server that will download any webpage as markdown in an instant. Download docs straight to your...
MCP server for Linear integration
A pluggable linter and fixer to enforce Protocol Buffer style and conventions.
An MCP server built on ableton-js that enables AI assistants to control Ableton Live in real-time, providing capabilities...
An MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants...
an MCP for querying the EVM
A MCP Server to test local development of function app apis
A browser plugin that automatically translates
MCP server for retrieving relevant documentation from a knowledge base
TypeScript Model Context Protocol (MCP) server boilerplate providing IP lookup tools/resources. Includes CLI support and extensible structure for...
Mallory - Cyber Threat Intelligence MCP Server





