Feedback

Emacs MCP Server

@vivekhaldar Claim

Basic information

Runtime
python
Category
License
Not specified
Transports
stdio
Author
vivekhaldar
Submitted by
Community
Quality
10
Stars
36

About Emacs MCP Server

# Emacs MCP Server

Emacs MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by vivekhaldar. Supported transport: stdio. Runtime: python. The repository has 36 GitHub stars. Source code is hosted on github.com. Related topics: elisp, emacs, mcp, server.

Setup

{
    "mcpServers": {
        "Emacs-MCP-Server": {
            "command": "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": "",
                "EMACSCLIENT": ""
            }
        }
    }
}

Emacs MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "Emacs-MCP-Server": {
            "command": "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": "",
                "EMACSCLIENT": ""
            }
        }
    }
}

Emacs MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Emacs MCP Server?

A Model Context Protocol (MCP) server that integrates LLMs with Emacs by generating and executing Emacs Lisp code. It uses emacsclient to communicate with a running Emacs process. Designed for users who want to combine AI-based code generation with Emacs workflows.

How to use Emacs MCP Server?

The project is managed with uv. Run uv sync to install dependencies and source .venv/bin/activate to activate the virtual environment. To run the server in the MCP inspector, use mcp dev emacs_mcp_server.py. For integration with Claude Desktop, run mcp install emacs_mcp_server.py and then edit claude_desktop_config.json to include your OPENAI_API_KEY and the full path to emacsclient.

Key features of Emacs MCP Server

  • Generates Emacs Lisp code for a given task.
  • Executes generated elisp in a running Emacs via emacsclient.
  • Exposes two tools: generate_emacs_lisp_code and execute_emacs_lisp_code.
  • Requires an OpenAI API key and a configured emacsclient path.
  • Can be integrated with Claude Desktop or other MCP-compatible clients.

Use cases of Emacs MCP Server

  • Generate elisp code to automate repetitive Emacs actions (e.g., buffer operations).
  • Execute AI-generated elisp directly in an active Emacs session.
  • Quickly prototype and test Emacs Lisp functions with LLM assistance.

Frequently asked questions

1 What dependencies are required?

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

2 How do I install the server for Claude Desktop?

Run mcp install emacs_mcp_server.py, then edit the generated `claude_desktop_config.json

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬