Emacs MCP Server
@vivekhaldar
Emacs MCP Server について
概要はまだありません
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"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": ""
}
}
}
}ツール
2generates elisp for a given task
passes elisp to a running Emacs (via `emacsclient`) to eval and execute it.
概要
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_codeandexecute_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.
FAQ from Emacs MCP Server
What dependencies are required?
You need Python with uv, the mcp and smartfunc packages, a running Emacs, and emacsclient installed and accessible.
How do I install the server for Claude Desktop?
Run mcp install emacs_mcp_server.py, then edit the generated `claude_desktop_config.json
「その他」の他のコンテンツ
Mobile Mcp
mobile-nextModel Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
Codelf
unbugA search tool helps dev to solve the naming things problem.
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
コメント