Provides tools for interacting with the Telegraph API, enabling account management, page creation and editing with HTML/Markdown support, template-based content creation, page export and backup, and view statistics retrieval.
Telegraph MCP Server (Python)
A Model Context Protocol (MCP) server that provides tools for interacting with the Telegraph API (telegra.ph). This Python implementation allows Claude and other LLM clients to create, manage, and export Telegraph pages.
Features
Account Management: Create accounts, update info, manage access tokens
Page Operations: Create, edit, retrieve, and list pages
Template System: Create pages using pre-built templates
Export & Backup: Export pages to Markdown/HTML, backup entire accounts
MCP Resources: Access Telegraph pages as MCP resources
MCP Prompts: Guided workflows for common tasks
Installation
Using uvx (Recommended)
Using pip
From Source
Usage
With Claude Code
With Claude Desktop
Add to your Claude Desktop configuration (~/.config/claude/claude_desktop_config.json):
Or if installed via pip:
Available Tools
Account Management
Tool | Description |
| Create a new Telegraph account |
| Update account information |
| Get account details |
| Revoke and regenerate access token |
Page Management
Tool | Description |
| Create a new page (supports HTML/Markdown) |
| Edit an existing page |
| Get page by path |
| List all pages for an account |
| Get page view statistics |
Templates
Tool | Description |
| List available templates |
| Create page from template |
Export & Backup
Tool | Description |
| Export page to Markdown/HTML |
| Backup all account pages |
Resources
Access Telegraph pages directly as MCP resources:
Example: telegraph://page/Sample-Page-12-15
Prompts
Pre-defined prompts for guided workflows:
create_blog_post- Guide for creating blog postscreate_documentation- Guide for creating documentationsummarize_page- Summarize an existing page
Examples
Creating a Page with Markdown
Using Templates
Exporting a Page
Development
Setup
Testing with MCP Inspector
Related Packages
telegraph-mcp - TypeScript MCP server
telegraph-api-py - Python Telegraph client
telegraph-api-client - TypeScript Telegraph client
License
MIT License - see LICENSE for details.