Model Context Protocol (MCP) server for Emacs
Project description
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"
}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_emacs_mcp_server-0.1.1.tar.gz.
File metadata
- Download URL: mseep_emacs_mcp_server-0.1.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e68ca3d399461bc54649f0d1f03d48cb09a2c9c80cb9a1b315d32ea5758ca72
|
|
| MD5 |
5461a8812cbe0a44cfb7374e6643aa29
|
|
| BLAKE2b-256 |
316692d7e8e2c3b6b8390c0bba2ff5e215f30f505fa33a67abad0fda231cfa8f
|
File details
Details for the file mseep_emacs_mcp_server-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mseep_emacs_mcp_server-0.1.1-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d549351f1dc72a16d30a42488d62f2a084887d6c466650aabc82ed58e02cee0
|
|
| MD5 |
e31937085087934d57db222396e07efc
|
|
| BLAKE2b-256 |
7cc70225877d6fa6a2a8622d31bbef80b32f98419230bbd6b66f51c87a1ef589
|