mcp-rb-template
An MCP Server exposing open Emacs buffers as Resources
Overview
mcp-emacs-buffers is an MCP Server that exposes open Emacs buffers as Resources, allowing developers to interact with Emacs buffers programmatically.
To use mcp-emacs-buffers, set up the MCP server and connect to it using your preferred client to access and manipulate Emacs buffers.
- Exposes Emacs buffers as resources for easy access. - Allows programmatic interaction with Emacs buffers. - Supports multiple clients connecting to the server.
- Integrating Emacs with other applications for enhanced productivity.
- Automating tasks in Emacs through external scripts.
- Building custom tools that leverage Emacs' powerful editing capabilities.
Add to your AI client
Use these steps to connect mcp-rb-template in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-emacs-buffers-kfischer-okarin": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-emacs-buffers-kfischer-okarin"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-emacs-buffers-kfischer-okarin": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-emacs-buffers-kfischer-okarin"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-emacs-buffers-kfischer-okarin": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-emacs-buffers-kfischer-okarin"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-emacs-buffers-kfischer-okarin": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-emacs-buffers-kfischer-okarin"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-emacs-buffers-kfischer-okarin": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-emacs-buffers-kfischer-okarin"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-emacs-buffers-kfischer-okarin": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-emacs-buffers-kfischer-okarin"
]
}
}
}