Back to Home
rhblind icon

emacs-mcp-server

by rhblind

Overview

Connects Large Language Models (LLMs) to an Emacs environment, allowing LLMs to interact with and control Emacs functionality via the Model Context Protocol (MCP).

Installation

Run Command
test/scripts/start-test-server.sh start

Environment Variables

  • EMACS_MCP_TIMEOUT
  • EMACS_MCP_DEBUG
  • EMACS_BIN

Security Notes

The server includes an `eval-elisp` tool which allows remote execution of arbitrary Emacs Lisp code by the connected LLM. While the project implements a sophisticated permission system, input validation, and execution limits, the README explicitly states that 'Using `eval-elisp` requires trusting the LLM completely' and details known bypasses (e.g., `funcall`, `apply`, macro evaluation) that can circumvent security checks. This inherent capability for remote code execution makes it a critical security risk if the LLM is untrusted or compromised, despite defense-in-depth measures.

Similar Servers

Stats

Interest Score42
Security Score3
Cost ClassMedium
Avg Tokens300
Stars32
Forks2
Last Update2026-01-08

Tags

EmacsLLM IntegrationMCPJSON-RPCAI AgentDevelopment