Back to Browse

Agentic LLM use in Emacs using Model Context Protocol (MCP)

4.1K views
May 31, 2025
46:55

Here's a demo using tools in Emacs with the LLMs of your choosing. You can have any mix of "native" Emacs Lisp tools and MCP server tools using a combination of the gptel package and the mcp.el package. 00:00 Introduction 01:50 How to create tools in Emacs Lisp in gptel 08:35 Demo of gptel Emacs Lisp tools 18:00 Model Context Protocol and mcp.el 20:38 mcp.el - github page and configuration examples 26:00 Demo of gptel using MCP servers 42:20 Translate Claude Desktop mcp configs for mcp.el 45:15 mcp-server-lib.el - Write even your MCP servers in Emacs Lisp! My configuration for mcp.el: https://github.com/gregoryg/emacs-gregoryg?tab=readme-ov-file#mcpel---model-context-protocol My gptel configuration (excerpt at will): https://github.com/gregoryg/emacs-gregoryg?tab=readme-ov-file#gptel---llms-in-markdown-and-org-mode My AIPIHKAL repo - prompts for LLMs, including the tool-use prompt I use here: https://github.com/gregoryg/AIPIHKAL Gptel package: https://github.com/karthink/gptel mcp.el package: https://github.com/lizqwerscott/mcp.el

Download

0 formats

No download links available.

Agentic LLM use in Emacs using Model Context Protocol (MCP) | NatokHD