1. Conduid
  2. Developer Tools
  3. Emacs MCP Server
MCP server · Developer Tools

Emacs MCP Server

Interact with Emacs in Claude/etc via MCP

Unclaimed MIT last commit a year ago devtools
39Low

Scored 8 days ago · breakdown

About Emacs MCP Server

Emacs MCP Server is an MCP server published by keegancsmith in the Developer Tools category: interact with Emacs in Claude/etc via MCP.

The repository has 14 stars and 2 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/keegancsmith/emacs-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Emacs MCP Server

Powered by Claude · Grounded in docs

I know everything about Emacs MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !No dynamic code executionSource scan found eval or shell execution. Review how tool inputs reach it before granting credentials.

1 check has not been run yet.

Releases

v0.0.1v0.0.1

README

Emacs MCP Server

This is a simple MCP (Model Context Protocol) server that allows language models to interact with Emacs through emacsclient --eval commands and view the current state of Emacs.

Features

The server provides three tools:

  • emacs_eval: Evaluates an Emacs Lisp expression and returns the result
  • emacs_get_visible_text: Gets the text currently visible in the Emacs window
  • emacs_get_context: Gets contextual information about the current Emacs state (buffer, mode, point position, etc.)

Requirements

  • Node.js
  • Emacs with the server running (M-x server-start in Emacs)

Installation

No installation is needed if you use npx. Just make sure you have Node.js and npm installed.

Usage with Claude for Desktop

To use this MCP server with Claude for Desktop:

  1. Make sure Emacs is running with the server started (M-x server-start)

  2. Add the server to your Claude for Desktop configuration at:

    • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
    • Windows: %AppData%\Claude\claude_desktop_config.json

Example configuration:

{
  "mcpServers": {
    "emacs-mcp": {
      "command": "npx",
      "args": [
        "-y", "@keegancsmith/emacs-mcp-server"
      ]
    }
  }
}
  1. Restart Claude for Desktop

How It Works

The server uses emacsclient --eval to send Lisp expressions to a running Emacs instance. All operations are performed in the context of the currently visible buffer in the selected window. This allows language models to:

  • Query information from Emacs (buffers, modes, variables, etc.)
  • Execute commands in Emacs
  • Manipulate text and buffers
  • Access Emacs functionality
  • See what's currently visible in Emacs
  • Get cursor position and other buffer context

Example Usage

Once the server is set up, you can use it in Claude to interact with Emacs:

Can you show me the list of buffers in my Emacs?

Claude will use the emacs_eval tool with an expression like (buffer-list) to retrieve and display your buffers.

What's currently visible in my Emacs window?

Claude can use emacs_get_visible_text to see the text content that's currently displayed.

What file am I currently editing in Emacs?

Claude will use emacs_get_context to provide information about the current buffer.

Security Considerations

This server allows executing arbitrary Emacs Lisp code, which has full access to your Emacs environment and potentially your system. Use with trusted LLM providers and be cautious about the expressions that might be executed.

License

MIT

README fetched from the repository 6 days ago. The original is authoritative.

Questions

About Emacs MCP Server

How do I install Emacs MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Emacs MCP Server safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 3 of the 5 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Emacs MCP Server still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.