Emacs MCP Server

# Emacs MCP Server Model Context Protocol (MCP) server for Emacs. Enables generating and running elisp code in a running Emacs process. ## Tools The

Local serverstdio

What is the Emacs MCP Server?

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
generate_emacs_lisp_codegenerates elisp for a given task
execute_emacs_lisp_codepasses elisp to a running Emacs (via emacsclient) to eval and execute it.

Configuration

VariableDescriptionRequired
OPENAI_API_KEYCredential the server authenticates with.Yes
EMACSCLIENTConfiguration value read at startup.Optional

Example prompts to try

  • “Use Emacs to generate emacs lisp code.”
  • “Use Emacs to execute emacs lisp code.”

Frequently asked questions

You need Python with `uv`, the `mcp` and `smartfunc` packages, a running Emacs, and `emacsclient` installed and accessible.