micropub-mcp
Enables syndication of posts to Bluesky via Micropub syndication targets.
Enables syndication of posts to Mastodon via Micropub syndication targets.
Compatible blogging platform; allows creating, updating, deleting, and querying posts via Micropub.
Compatible blogging platform (with IndieWeb plugins); allows creating, updating, deleting, and querying posts via Micropub.
Click on "Install 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., "@micropub-mcpCreate a note saying Hello from my blog!"
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.
micropub-mcp
MCP server that lets AI agents (Claude Code, Cursor, etc.) create, update, delete, and query posts on any Micropub-compatible blog. Authenticates via IndieAuth with PKCE.
Built with Bun + TypeScript.
Quick Start
1. Install
git clone https://github.com/rmdes/micropub-mcp.git
cd micropub-mcp
bun install2. Add to Claude Code
Add to your .mcp.json (project or global):
{
"mcpServers": {
"micropub": {
"command": "bun",
"args": ["run", "/path/to/micropub-mcp/src/index.ts"]
}
}
}3. Authenticate
Tell Claude: "Authenticate with my blog at https://yourblog.com"
This calls micropub_auth, which:
Discovers your blog's IndieAuth endpoints
Opens your browser to the authorization page
You approve access, the callback server catches the token
Token is saved to
~/.config/micropub-mcp/<domain>.json
Authentication persists across sessions. You only need to do this once.
4. Start Posting
"Create a note saying Hello from my MCP client!"
"Write an article titled 'My Setup' about my development environment"
"Syndicate a note to Bluesky and Mastodon about the IndieWeb"Related MCP server: Blogger MCP Server
Tools
micropub_auth
Authenticate with a Micropub-compatible blog via IndieAuth + PKCE.
Parameter | Type | Required | Description |
| string | Yes | Your blog URL (e.g., |
| string | No | OAuth scopes (default: |
micropub_create
Create a new post (note, article, photo, bookmark, etc.).
Parameter | Type | Required | Description |
| string | No | Post content (text or HTML) |
| string | No | Post type: |
| string | No | Title (makes it an article) |
| string | No | Post summary |
| string[] | No | Tags/categories |
| string[] | No | Syndication target UIDs |
| string | No | URL being replied to |
| string | No | URL being liked |
| string | No | URL being reposted |
| string[] | No | Photo URLs |
| string | No | URL slug |
| string | No |
|
| string | No | ISO 8601 date |
| string | No | AI text involvement: |
| string | No | AI code involvement: |
| string | No | AI tools used (e.g. |
| string | No | Free-text description of AI usage |
Examples:
Create a note: { content: "Hello world" }
Create an article: { name: "My Title", content: "Article body..." }
Create a bookmark: { like_of: "https://example.com/post" }
Create a reply: { in_reply_to: "https://example.com/post", content: "Great post!" }
Syndicate: { content: "Cross-posted!", syndicate_to: ["https://brid.gy/publish/bluesky"] }
With AI metadata: { content: "AI-assisted post", ai_text_level: "2", ai_tools: "Claude" }micropub_update
Update an existing post.
Parameter | Type | Required | Description |
| string | Yes | URL of the post to update |
| object | No | Properties to replace (values are arrays) |
| object | No | Properties to add |
| string[] | No | Property names to remove |
Example: { url: "https://blog.com/notes/abc", replace: { content: ["Updated text"] }, add: { category: ["new-tag"] } }
micropub_delete
Delete a post.
Parameter | Type | Required | Description |
| string | Yes | URL of the post to delete |
micropub_undelete
Restore a previously deleted post.
Parameter | Type | Required | Description |
| string | Yes | URL of the post to restore |
micropub_query
Query the Micropub server for configuration, posts, or metadata.
Parameter | Type | Required | Description |
| string | Yes | Query type (see below) |
| string | No | Post URL (for |
| string[] | No | Properties to return |
| number | No | Max results |
| number | No | Pagination offset |
Query types:
config— Server capabilities, syndication targets, post typessource— Get a post's properties (requiresurl)syndicate-to— Available syndication targetspost-types— Supported post typescategory— Available categories/tagschannel— Available channels
micropub_upload
Upload a media file to the server's media endpoint.
Parameter | Type | Required | Description |
| string | Yes | Absolute path to the file |
Returns the uploaded file's URL, which can be used in photo, video, or audio parameters of micropub_create.
AI Transparency Metadata
Posts can optionally carry metadata disclosing AI involvement. These fields are sent as standard Micropub mf2 properties (ai-text-level, ai-code-level, ai-tools, ai-description).
All fields are optional. If your Micropub server doesn't know about them, it will simply store them as extra properties or ignore them — no special server-side support is required. This works with any standard Micropub endpoint.
Level |
|
|
0 | None — human wrote everything | Human-written |
1 | Editorial assistance (grammar, spelling) | AI-assisted |
2 | Co-drafting (human directed, AI wrote) | Primarily AI-generated |
3 | AI-generated (human reviewed) | — |
If your server does support these fields (e.g., Indiekit with @rmdes/indiekit-endpoint-posts), they can be displayed in the post form UI and used for filtering or labeling posts.
How Authentication Works
┌─────────┐ ┌──────────────┐ ┌─────────────┐ ┌──────────┐
│ Claude │────>│ MCP Server │────>│ Browser │────>│ Blog │
│ Code │ │ (this tool) │ │ │ │ Server │
└─────────┘ └──────────────┘ └─────────────┘ └──────────┘
│ │ │ │
│ micropub_auth │ │ │
│───────────────>│ │ │
│ │ discover endpoints │ │
│ │────────────────────────────────────────>│
│ │ start callback │ │
│ │ server :19750 │ │
│ │ open browser ──────>│ │
│ │ │ authorize ────────>│
│ "open browser"│ │ │
│<───────────────│ │<── redirect with │
│ │ │ auth code │
│ │<── callback ────────│ │
│ │ exchange code ─────────────────────────>│
│ │<── access token ────────────────────────│
│ │ save token │ │
│ │ ~/.config/... │ │The callback server runs on localhost:19750 and is a process-level singleton — it persists across MCP tool calls and shuts down after receiving the callback.
Token Storage
Tokens are saved to ~/.config/micropub-mcp/<domain>.json and include:
Access token
Refresh token (if provided)
Expiration time
Discovered endpoints (micropub, media, token)
Expired tokens are automatically refreshed if a refresh token is available.
Requirements
Bun 1.0+
A blog with Micropub + IndieAuth support (e.g., Indiekit, WordPress with IndieWeb plugins, micro.blog)
Indiekit-Specific Notes
If your blog runs Indiekit behind nginx, ensure:
CSP
form-action: The/authlocation must allowform-action *(or at minimumhttp://localhost:*) so the OAuth consent form can redirect to the local callback server. Without this, clicking "Allow" does nothing (HTTP 499 in logs).Redirect validation: Indiekit's upstream redirect regex (
/^\/[\w&/=?]*$/) rejects hyphens in paths like/auth/new-password. If you hitForbiddenError: Invalid redirect attempted, patchlib/indieauth.jswith an expanded regex.
Development
# Run tests
bun test
# Start the MCP server (stdio)
bun run src/index.tsArchitecture
src/
├── index.ts Entry point — creates MCP server, connects stdio transport
├── tools.ts 7 MCP tool definitions with Zod schemas
├── auth.ts IndieAuth + PKCE flow, token storage, non-blocking callback server
├── client.ts Micropub HTTP client (create/update/delete/query/upload)
└── discovery.ts Endpoint discovery from Link headers + HTML + indieauth-metadataLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rmdes/micropub-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server