mcp.el

This repository provides MCP.el, an Emacs client for the Model Context Protocol, enabling structured communication with MCP servers and offering features like resource management and integration with other Emacs packages.

235
7

MCP.el - Model Context Protocol for Emacs

This Emacs package provides a client for interacting with MCP servers, enabling structured communication and resource management. It supports filesystem and generic MCP servers, offering an extensible tool and prompt system with both asynchronous and synchronous operations.

Key features include managing server lifecycles (start/stop/restart) and integration with packages like gptel and llm. MCP.el facilitates configuring servers with commands, arguments, and environment variables. The mcp-hub interface allows server management with keybindings for viewing logs, starting, stopping, and restarting servers.

The package provides functions for registering and using MCP tools with gptel, and examples demonstrate connecting to a filesystem server, defining tool usage, and manual function calls for both synchronous and asynchronous operations. It also covers manual prompt retrieval and resource access. MCP.el is licensed under GPLv3.

Repository

LI
lizqwerscott

lizqwerscott/mcp.el

Created

January 5, 2025

Updated

March 28, 2025

Language

Emacs Lisp

Category

AI