emacs-mcp-server

emacs-mcp-server

3.4

If you are the rightful owner of emacs-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Emacs MCP Server is a tool that allows language models to interact with Emacs through `emacsclient --eval` commands, enabling them to view and manipulate the current state of Emacs.

The Emacs MCP Server is designed to facilitate interaction between language models and the Emacs text editor. By leveraging the `emacsclient --eval` command, the server can evaluate Emacs Lisp expressions, retrieve visible text, and gather contextual information about the current Emacs state, such as buffer details, mode, and cursor position. This integration allows for a seamless exchange of information and commands between Emacs and language models, enhancing the capabilities of both. The server requires Node.js and a running Emacs server, and it can be easily configured for use with platforms like Claude for Desktop. Security is a key consideration, as the server can execute arbitrary Emacs Lisp code, so it should be used with trusted language model providers.

Features

  • Evaluates Emacs Lisp expressions and returns results
  • Retrieves text currently visible in the Emacs window
  • Gathers contextual information about the current Emacs state
  • Facilitates interaction between language models and Emacs
  • Enhances language model capabilities with Emacs integration

Tools

  1. emacs_eval

    Evaluates an Emacs Lisp expression and returns the result

  2. emacs_get_visible_text

    Gets the text currently visible in the Emacs window

  3. emacs_get_context

    Gets contextual information about the current Emacs state (buffer, mode, point position, etc.)