MCPVault

eval-elisp

MCP tool from Emacs MCP Server by rhblind

Executes an arbitrary Elisp expression in the running Emacs process and returns the printed result. The expression passes through the security layer, which blocks dangerous functions and credential-bearing files (see Security).

How to use it

eval-elisp is exposed by the Emacs MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the eval-elisp tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Emacs MCP Server

$claude mcp add emacs -- socat - UNIX-CONNECT:$HOME/.config/emacs/.local/cache/emacs-mcp-server.sock # Uses socat directly
FULL EMACS MCP SERVER LISTING