Skip to main content

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 task
  • execute_emacs_lisp_code: passes elisp to a running Emacs (via emacsclient) 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"
      }
    }

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_emacs_mcp_server-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_emacs_mcp_server-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_emacs_mcp_server-0.1.0.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_emacs_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 47fa94018af9eb9719c68820298b3dc8483123530e50e515ef74d254bf5e83f4
MD5 a72294ff441453697f083f314e0e6826
BLAKE2b-256 133c0510e76ac086fbcc4353fd9c363adfc1856c21379ab12bd8f427c62fa3db

See more details on using hashes here.

File details

Details for the file iflow_mcp_emacs_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_emacs_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 973fa1ce86a904d74f7eecabeb80d34167a2d18d36985a6df50c6586896de2ae
MD5 19f444a95acee11a9326002569015963
BLAKE2b-256 323ea1d87d12d37ae3f2d1e5399c2c2588992cdb15de34e6fd0b3c7f6874a490

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page