
vivekhaldar/emacs-mcp-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
모형 Emacs를 위한 Context 의정서 (MCP) 서버. Emacs 프로세스에서 elisp 코드를 생성하고 실행할 수 있습니다.
개요
모형 Emacs를 위한 Context 의정서 (MCP) 서버. Emacs 프로세스에서 elisp 코드를 생성하고 실행할 수 있습니다. 서버는 두 가지 도구를 노출: - generate emacs lisp code: 주어진 작업에 대한 elisp 생성 - execute emacs lisp code: elisp를 실행하는 Emacs ( emacsclient를 통해) eval에 전달하고 실행합니다. 프로젝트는 uv로 관리됩니다. 첫째, 모든 의존성을 설치하기 위해 uv sync를 실행합니다. 그런 다음 .venv/bin/Active venv를 활성화하십시오. Claude 데스크톱이 사용할 수 있도록 MCP 서버를 설치하려면: 하지만 claude desktop config.json에서 JSON config를 편집해야 하며, emacsclient에 API 키와 전체 경로를 포함해야 합니다. 이 같은 것을 살펴야한다:
개요(AI 번역)
모형 Emacs를 위한 Context 의정서 (MCP) 서버. Emacs 프로세스에서 elisp 코드를 생성하고 실행할 수 있습니다.
도구
서버는 두 개의 도구를 노출:
generate_emacs_lisp_code: 주어진 작업에 대한 elisp 생성execute_emacs_lisp_code: elisp를 실행하는 Emacs (를 통해emacsclient])를 eval에 전달하고 실행합니다.
직업
프로젝트는 uv로 관리됩니다. 먼저, uv sync를 실행하여 모든 의존성을 설치합니다. 그런 다음 source .venv/bin/activate venv를 활성화합니다.
검사기에서 MCP 서버를 실행하려면:
Claude 데스크톱이 사용할 수 있도록 MCP 서버를 설치하려면:
그러나 API 키와 전체 경로를 포함하는 claude_desktop_config.json emacsclient]에서 JSON config 결과를 편집해야 합니다. 이 같은 것을 살펴야한다:
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
Emacs MCP Server
Model Context Protocol (MCP) server for Emacs. Enables generating and running elisp code in a running Emacs process.
Tools
The server exposes two tools:
generate_emacs_lisp_code: generates elisp for a given taskexecute_emacs_lisp_code: passes elisp to a running Emacs (viaemacsclient) to eval and execute it.
Invocation
The project is managed with uv. First, run uv sync to install all dependencies. Then source .venv/bin/activate to activate the resulting venv.
To run the MCP server in the inspector:
mcp dev emacs_mcp_server.py
To install the MCP server so that Claude Desktop can use it:
mcp install emacs_mcp_server.py
But you will have to edit the resulting JSON config in claude_desktop_config.json to include API keys and the full path to emacsclient. It should look something like this:
"Emacs-MCP-Server": {
"command": "/Users/haldar/.local/bin/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": "sk-xxxx",
"EMACSCLIENT": "/your/path/to/emacsclient"
}
}
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →