emacs-gptel-integration

Connect Emacs to Claude and MCP for bidirectional AI-assisted editing.

1|1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/Jylhis/skills --skill emacs-gptel-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: emacs-gptel-integration
Source: https://github.com/Jylhis/skills/tree/main/skills/emacs-gptel-integration
Command: npx skills add https://github.com/Jylhis/skills --skill emacs-gptel-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Emacs users often lack seamless Claude integration and MCP wiring to operate as both an MCP client and an MCP server. This Skill provides a workflow to connect gptel to Claude, wire mcp.el for MCP server access, and expose Emacs to external MCP clients for bidirectional AI-assisted editing, especially within Org-mode conversations.

Core Features & Use Cases

  • Native Claude support via gptel with MCP integration for in-Emacs AI dialogues.
  • MCP client wiring to attach Emacs to external MCP servers and orchestrate AI tooling.
  • MCP server exposure via emacs-mcp-server / mcp-server-lib.el to allow external clients to connect.
  • Org-mode conversation branching and structured AI-assisted editing workflows for documentation and coding.

Quick Start

Open Emacs, install gptel and mcp.el, configure the Claude backend, and enable MCP wiring to expose Emacs as an MCP client and server.

Frequently Asked Questions about emacs-gptel-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect Emacs to Claude for AI-assisted editing in Org-mode?

You can connect Emacs to Claude for AI-assisted editing in Org-mode by configuring the gptel package with a Claude backend. This enables native in-Emacs AI dialogues and structured conversation branching directly within your text editor.

Can I use Emacs as an MCP server for external AI clients?

Yes, Emacs can be exposed as an MCP server for external clients by utilizing emacs-mcp-server or mcp-server-lib.el. This allows external AI tools to connect to Emacs, enabling bidirectional AI-assisted editing workflows.

How do I wire mcp.el to access external MCP servers from Emacs?

To wire mcp.el for MCP server access, you configure it within Emacs to attach to external MCP servers. This setup orchestrates AI tooling and enables bidirectional communication between Emacs and external tools.

What packages do I need to enable Claude MCP integration in Emacs?

To enable Claude MCP integration in Emacs, you need the gptel package for Claude backend configuration, mcp.el for MCP server access, and optionally emacs-mcp-server to expose Emacs as an MCP server.

Does gptel support bidirectional AI editing with external MCP servers?

Yes, gptel supports bidirectional AI editing with external MCP servers when combined with mcp.el and emacs-mcp-server. This configuration allows Emacs to act as both a client accessing external servers and a server exposing endpoints to external clients.