Telegraph MCP Server
Provides tools for creating and managing Telegraph accounts and pages, including support for Markdown content conversion, page templates, view statistics, and export/backup functionality through the Telegraph API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Telegraph MCP Server create a new page titled 'Project Update' with markdown content summarizing this week's progress"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Telegraph MCP Server
An MCP (Model Context Protocol) server that exposes the Telegraph API as tools for Claude and other LLM clients. This allows AI assistants to create, edit, and manage Telegraph pages programmatically.
Related Projects
This is part of the Telegraph tools ecosystem:
Project | Description | Package |
telegraph-mcp (this) | MCP Server for AI assistants (TypeScript) | |
MCP Server for AI assistants (Python) | ||
JavaScript/TypeScript library | ||
Python library |
Related MCP server: Telegram MCP Server
Quick Start
npx telegraph-mcpOr add to Claude Code:
claude mcp add telegraph -- npx telegraph-mcpFeatures
13 Telegraph API tools covering all Telegraph functionality
Create and manage Telegraph accounts
Create, edit, and retrieve Telegraph pages
View statistics for pages
Markdown support - Write content in Markdown, automatically converted to Telegraph format
Templates - Pre-built templates for blog posts, documentation, articles, changelogs, and tutorials
Export/Backup - Export pages to Markdown or HTML, backup entire accounts
MCP Resources - Access Telegraph pages as MCP resources
MCP Prompts - Pre-defined prompts for common tasks
Installation
Option 1: Via npm (Recommended)
# With Claude Code
claude mcp add telegraph -- npx telegraph-mcp
# Or globally
npm install -g telegraph-mcpOption 2: From Source
git clone https://github.com/NehoraiHadad/telegraph-mcp.git
cd telegraph-mcp
npm install
npm run build
claude mcp add telegraph -- node $(pwd)/dist/index.jsUsage with Claude Code
claude mcp add telegraph -- npx telegraph-mcpUsage with Claude Desktop
Add this to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"telegraph": {
"command": "npx",
"args": ["-y", "telegraph-mcp"]
}
}
}Available Tools
Account Management
Tool | Description | Auth Required |
| Create a new Telegraph account | No |
| Update account information | Yes |
| Get account details | Yes |
| Revoke and regenerate access token | Yes |
Page Management
Tool | Description | Auth Required |
| Create a new Telegraph page (supports Markdown!) | Yes |
| Edit an existing page | Yes |
| Get a page by path | No |
| List all pages for an account | Yes |
| Get view statistics for a page | No |
Templates
Tool | Description | Auth Required |
| List all available page templates | No |
| Create a page using a template | Yes |
Export & Backup
Tool | Description | Auth Required |
| Export a page to Markdown or HTML | No |
| Backup all pages from an account | Yes |
Example Usage
Creating an Account
Use telegraph_create_account with:
- short_name: "MyBot"
- author_name: "AI Assistant"This returns an access_token that you should save for future operations.
Creating a Page
Use telegraph_create_page with:
- access_token: "your_token_here"
- title: "My First Telegraph Page"
- content: "<p>Hello <b>world</b>!</p><p>This is my first Telegraph page.</p>"Creating a Page with Markdown
Use telegraph_create_page with:
- access_token: "your_token_here"
- title: "My Markdown Page"
- content: "# Hello World\n\nThis is **bold** and *italic*.\n\n- List item 1\n- List item 2"
- format: "markdown"Using Templates
Use telegraph_create_from_template with:
- access_token: "your_token_here"
- template: "blog_post"
- title: "My Blog Post"
- data: {
"intro": "Welcome to my blog!",
"sections": [
{"heading": "First Section", "content": "Section content here"}
],
"conclusion": "Thanks for reading!"
}Available templates: blog_post, documentation, article, changelog, tutorial
Content Format
The content parameter accepts:
Markdown (with
format: "markdown"):"# Hello\n\n**Bold** and *italic*"HTML strings:
"<p>Hello <b>world</b></p>"JSON Node arrays:
[{"tag": "p", "children": ["Hello ", {"tag": "b", "children": ["world"]}]}]
Supported Markdown Syntax
Syntax | Result |
| H3 heading |
| H4 heading |
| Bold text |
| Italic text |
| Link |
| Image |
| Unordered list |
| Ordered list |
| Blockquote |
| Inline code |
| Code block |
| Horizontal rule |
Supported HTML Tags
a, aside, b, blockquote, br, code, em, figcaption, figure, h3, h4, hr, i, iframe, img, li, ol, p, pre, s, strong, u, ul, video
Supported Attributes
href- for<a>tagssrc- for<img>,<video>,<iframe>tags
MCP Resources
Access Telegraph pages as MCP resources:
telegraph://page/{path}Example: telegraph://page/Sample-Page-12-15
MCP Prompts
Available prompts for guided workflows:
Prompt | Description |
| Guide for creating a blog post |
| Guide for creating documentation |
| Summarize an existing page |
Development
# Install dependencies
npm install
# Build TypeScript
npm run build
# Run directly (for testing)
npm startTesting with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.jsAPI Reference
This server implements all methods from the Telegraph API:
createAccount - Create a new Telegraph account
editAccountInfo - Update account information
getAccountInfo - Get account details
revokeAccessToken - Revoke access token
createPage - Create a new page
editPage - Edit an existing page
getPage - Get a page
getPageList - Get list of pages
getViews - Get page view statistics
License
MIT
Available Tools
13 toolstelegraph_backup_accountC
Backup all pages from a Telegraph account
Inputs: access_token (required), format, limit.
telegraph_create_accountA
Create a new Telegraph account. Returns an Account object with access_token that should be saved for future requests.
Inputs: short_name (required), author_name, author_url.
telegraph_create_from_templateB
Create a new Telegraph page using a template
Inputs: access_token (required), template (required), title (required), data (required), +3 more.
telegraph_create_pageA
Create a new Telegraph page. Returns a Page object including the URL of the created page.
Inputs: access_token (required), title (required), content (required), format, +3 more.
telegraph_edit_account_infoA
Update information about a Telegraph account. At least one optional parameter must be provided.
Inputs: access_token (required), short_name, author_name, author_url.
telegraph_edit_pageB
Edit an existing Telegraph page. Returns the updated Page object.
Inputs: access_token (required), path (required), title (required), content (required), +4 more.
telegraph_export_pageB
Export a Telegraph page to Markdown or HTML format
Inputs: path (required), format.
telegraph_get_account_infoB
Get information about a Telegraph account.
Inputs: access_token (required), fields.
telegraph_get_pageA
Get a Telegraph page by its path. Returns a Page object.
Inputs: path (required), return_content.
telegraph_get_page_listB
Get a list of pages belonging to a Telegraph account. Returns a PageList object with total_count and pages array.
Inputs: access_token (required), offset, limit.
telegraph_get_viewsB
Get the number of views for a Telegraph page. Can filter by year, month, day, or hour.
Inputs: path (required), year, month, day, +1 more.
telegraph_list_templatesA
List all available page templates with their fields
Inputs: no named parameters.
telegraph_revoke_access_tokenB
Revoke the current access_token and generate a new one. The old token becomes invalid immediately.
Inputs: access_token (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool has a clear and distinct purpose: account management, page operations, template listing, and views. No two tools could be confused for the same action on the same resource.
All tools consistently use the 'telegraph_' prefix followed by a clear verb_noun pattern (e.g., create_account, edit_page, get_views). The naming is uniform and predictable.
With 13 tools, the set is well-scoped for the Telegraph domain, covering account lifecycles, page creation/editing, export, and analytics without being overly large or insufficient.
The toolset covers most core operations: account creation and info, page CRUD (except delete), export, and views. The absence of a delete tool is a minor gap, but the surface is largely complete.
Maintenance
Related MCP Connectors
Publish, list, update and delete shareable Markdown/HTML pages from your AI assistant.
Publish and schedule Telegram channel posts from your AI assistant.
Publish, update, read, rename, and share single-URL web pages from any AI agent.
Let AI assistants post to your Telegram chats, groups and channels. Not affiliated with Telegram.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables interaction with the Telegraph API (telegra.ph) to create, manage, edit, and export Telegraph pages. Supports account management, templates, Markdown/HTML formatting, and page backup functionality.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with the Telegram Bot API, allowing them to send messages, forward messages, get bot information, and receive updates.3MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to publish, edit, search, and manage messages in Telegram channels via a set of MCP tools.8MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control a personal Telegram account for sending/reading messages, media, group management, and more via the MTProto API.MIT