mcp-movabletype-writer
MCP server for Movable Type. It lets MCP-compatible AI tools such as Claude Desktop work with Movable Type so that AI-generated drafts can be created and edited directly inside MT.
README
mcp-movabletype-writer
MCP server for Movable Type.
It lets MCP-compatible AI tools such as Claude Desktop work with Movable Type so that AI-generated drafts can be created and edited directly inside MT.
You can brainstorm articles with an AI assistant, store the result as a Movable Type draft, and iterate on the same draft by asking the AI to revise sections.
Features
- 🤖 AI integration: Post drafts to Movable Type straight from Claude Desktop or any MCP client.
- 💾 Session tracking: Remembers the last edited draft so multi-step rewrites stay in context.
- ✏️ Rewrite ready: “Fix this paragraph” style prompts update the current draft in place.
- 📝 Draft management: List drafts and inspect individual draft details.
For safety this server intentionally focuses on collaborative draft creation. It does not allow:
- Deleting drafts or published entries.
- Publishing drafts.
- Editing already published entries or reverting them to drafts.
Requirements
- Node.js 22.7.5 or newer (current LTS 24.x is recommended).
- Movable Type 7 r.53xx or newer with Data API enabled.
- Tested with Data API v4 and later.
Installation
If you intend to run it via
npx, you can skip this section and jump to “Using with npx”.
git clone https://github.com/burnworks/mcp-movabletype-writer.git
cd mcp-movabletype-writer
npm install
npm run build
or simply install from npm:
npm install mcp-movabletype-writer
Configuration
1. Prepare Movable Type
- In both the system dashboard and the target website/blog dashboard enable Tools → Web Services → Data API.
- Open the MT user profile that will run the API calls and note the username and Web Services Password (this is different from the regular CMS login password).
- Confirm the Data API endpoint URL (e.g.
https://example.com/your_mt_path/mt-data-api.cgi).
2. Configure Claude Desktop
Open claude_desktop_config.json.
File locations
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
You can also open the file from Claude Desktop → Settings → Administrator.
Example configuration for a local build
Append the following block. args must contain the full path to dist/index.js.
On Windows, escape backslashes such as mcp-movabletype-writer\\dist\\index.js.
{
"mcpServers": {
"movabletype-writer": {
"command": "node",
"args": [
"/full_path_to/mcp-movabletype-writer/dist/index.js"
],
"env": {
"MT_API_URL": "https://example.com/your_mt_path/mt-data-api.cgi",
"MT_USERNAME": "your_username",
"MT_PASSWORD": "your_webservice_password",
"MT_API_VERSION": "5",
"MT_CLIENT_ID": "your_client_id",
"MT_REMEMBER": "1"
}
}
}
}
MT_API_URL: URL tomt-data-api.cgi.MT_USERNAME: Movable Type username.MT_PASSWORD: Web Services Password from the MT user profile (do not use the normal login password).MT_API_VERSION: Data API version in use, e.g.5,6,7.MT_CLIENT_ID: Any identifier composed of letters,_, or-(e.g.mcp-movabletype-writer).MT_REMEMBER:rememberflag (0/1). Leave it at1to keep sessions active until sign-out. Use0only if you need very short-lived tokens.
Changing MT_API_VERSION lets you point the same binary at MT Data API v4/v5/v6/v7 without rebuilding. MT_CLIENT_ID must be set; the server exits if it’s missing. Keeping MT_REMEMBER=1 reduces the chance of token expiry mid-session.
Using with npx
You can run the published package with npx. In that case point command to npx:
{
"mcpServers": {
"movabletype-writer": {
"command": "npx",
"args": [
"mcp-movabletype-writer"
],
"env": {
"MT_API_URL": "https://example.com/your_mt_path/mt-data-api.cgi",
"MT_USERNAME": "your_username",
"MT_PASSWORD": "your_webservice_password",
"MT_API_VERSION": "5",
"MT_CLIENT_ID": "mcp-movabletype-writer",
"MT_REMEMBER": "1"
}
}
}
}
Use mcp-movabletype-writer@1.0.0 if you prefer to pin a specific version. The env settings are identical to a local build.
Advanced settings (power users)
Fine-tuning knobs that aren’t meant for day-to-day users live in internal-config.json. Copy internal-config.example.json to the project root (or wherever you run the server from), rename it to internal-config.json, and adjust the values.
requestTimeoutMs: Timeout (milliseconds) for Movable Type HTTP requests. Defaults to30000.
If the file is missing or contains invalid JSON the server falls back to the built-in defaults, so it’s safe to experiment.
Usage
Basic flow
User: ブログID 1に「MTプラグイン開発入門」という記事の下書きを作成して
Claude: create_draftを実行...
→ 下書きを作成しました(ID: 123)
User: タイトルを「初心者向けMTプラグイン開発」に変更して
Claude: update_last_draftを実行...
→ 記事を更新しました(ID: 123)
User: 本文に「はじめに」のセクションを追加して
Claude: update_last_draftを実行...
→ 記事を更新しました(ID: 123)
Tips
- If you manage multiple blogs, ask Claude to run
list_sitesand choose the correctblog_idfrom the result. - Claude may default to HTML output; if you prefer Markdown drafts, explicitly request “save in Markdown”.
- Within a single conversation the server remembers the latest draft, so follow-up edits usually don’t require specifying
entry_id. - To edit another draft, ask for
list_recent_drafts, pick an ID from the list, and provide it toupdate_draft.
See the tool descriptions below for details.
Available tools
list_sites
Returns available blogs/sites.
Claude: list_sitesで確認...
→ ID: 1, Name: "Tech Blog"
→ ID: 2, Name: "News"
create_draft
Create a new draft.
- Required:
blog_id,title,body - Optional:
tags,categories
update_last_draft
Update the most recently created/edited draft.
- All parameters are optional; only supplied fields are changed.
update_draft
Update a draft by explicit ID.
- Required:
blog_id,entry_id - Optional:
title,body,tags,categories
get_draft
Fetch draft details.
- Required:
blog_id,entry_id
list_recent_drafts
List recent drafts.
- Required:
blog_id - Optional:
limit(default 10)
Session storage
Information about the most recent draft is stored at ~/.mcp-mt/session.json:
{
"lastEntryId": 123,
"lastBlogId": 1,
"lastUpdated": "2025-11-07T10:00:00.000Z"
}
This lets update_last_draft run without specifying entry_id.
For developers
Using environment variables with npm run dev
If you want to iterate with npm run dev (tsx) instead of npm run build, copy the example env file:
cp .env.example .env
MT_API_URL=https://example.com/your_mt_path/mt-data-api.cgi
MT_USERNAME=your_username
MT_PASSWORD=your_webservice_password
MT_API_VERSION=5
MT_CLIENT_ID=your_client_id
MT_REMEMBER=1
Then run:
npm install
npm run dev
For debugging, tools like @modelcontextprotocol/inspector make it easy to connect and exercise the MCP server while you develop.
Troubleshooting
Authentication errors
- Ensure
MT_USERNAME,MT_PASSWORD(Web Services Password), andMT_CLIENT_IDare correct. - Verify the Data API is enabled and that
mt-data-api.cgiis accessible.
Cannot find drafts
- Use
list_sitesto confirm the correctblog_id. - Run
list_recent_draftsto see available drafts and their IDs.
Session keeps resetting
- Check that
~/.mcp-mt/session.jsonstill exists. - Restarting Claude Desktop starts a new MCP session (and thus a blank
session.json).
License
MIT
References
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.