Docswrite MCP
Enables creating, updating, searching, and deleting Google Docs documents with support for content management and formatting
Provides search capabilities for documents stored in Google Drive and document deletion functionality
Allows publishing content from Google Docs to WordPress with extensive customization options for post properties, featured images, SEO settings, and formatting preferences
Supports configuring Yoast SEO settings when publishing WordPress content, including focus keywords, meta descriptions, and titles
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., "@Docswrite MCPcreate a new Google Doc titled 'Q4 Marketing Report' with the content from our planning meeting"
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.
Docswrite MCP Server
Publish content and Google Docs to WordPress, Webflow, Contentful, Shopify, GitHub, Dev.to, Hashnode, Medium, Ghost, Docswrite blogs, X and LinkedIn from Claude, ChatGPT, Cursor, or any other MCP client. Docswrite turns the doc (headings, images, links, tables) into a formatted post, uploads the images, and fills in SEO fields.
Remote server (recommended): https://api.docswrite.com/mcp
Docswrite now hosts the MCP server. There is nothing to install: add the URL as a
remote / custom connector and sign in to Docswrite when the client asks (OAuth 2.1
with dynamic client registration; you approve the connection for one organization
and can revoke it any time). Clients without OAuth can send an org API key instead
(Authorization: Bearer dw_live_... or x-api-key).
It publishes content directly: the assistant sends the post as Markdown or HTML (title, excerpt, tags, categories, slug, SEO fields, canonical URL, images) to one or many connections at once (WordPress, the WordPress plugin, Webflow, Contentful, Shopify, GitHub, Ghost, Medium, Dev.to, Hashnode, Docswrite blogs, X, LinkedIn), as a draft, now or scheduled. A Google Doc URL still works as the source.
Tool | What it does |
| Connected blogs, CMSs and social accounts (ids for |
| Publish content to one or many connections (draft / publish / schedule; |
| Posts across connections with status, URL and source |
| Follow a publish ( |
| Re-publish a post with changes, or reschedule it |
| The connected user, organization, plan and remaining free posts |
| Plans, and a Stripe checkout link (never charges by itself) |
| Search and read the organization's posts (ChatGPT connectors, deep research) |
Claude (claude.ai / Desktop): Settings -> Connectors -> Add custom connector ->
https://api.docswrite.com/mcp.
ChatGPT: Settings -> Connectors (developer mode) -> Create -> MCP server URL
https://api.docswrite.com/mcp, authentication OAuth.
Claude Code:
claude mcp add --transport http docswrite https://api.docswrite.com/mcp
# or with an org API key instead of OAuth:
claude mcp add --transport http docswrite https://api.docswrite.com/mcp --header "Authorization: Bearer dw_live_..."Cursor / VS Code / Windsurf (mcp.json):
{
"mcpServers": {
"docswrite": { "url": "https://api.docswrite.com/mcp" }
}
}MCP Inspector:
npx @modelcontextprotocol/inspector --cli https://api.docswrite.com/mcp --transport http \
--header "Authorization: Bearer dw_live_..." --method tools/listThe same publishing is available over REST: POST https://api.docswrite.com/api/v1/posts
(see https://api.docswrite.com/openapi.json and https://api.docswrite.com/auth.md).
The rest of this README covers the local stdio server in this repository, which still works (for clients that only run local servers, or to publish from Google Docs with your own Google OAuth client).
Related MCP server: Locations MCP Server
Quick start (local stdio server)
In the Docswrite dashboard, open Settings -> API Keys (https://docswrite.com/dashboard/api-keys) and create an org API key (
dw_live_...). One key reaches every connection of your organization: the assistant lists your connections and publishes to any of them.Run the server (Node.js 18+):
npx -y @docswrite/docswrite-mcp --docswriteToken dw_live_...Until the npm package is published, run it straight from GitHub (same flags):
npx -y github:Docswrite/docswrite-mcp --docswriteToken dw_live_...The key can also be passed as --docswriteToken=<key> or through the
DOCSWRITE_TOKEN environment variable.
Two kinds of credentials
Credential | Looks like | Tools | Publishes to |
Org API key (recommended) |
|
| any CMS/blog connection of the organization |
Per-site token (legacy) | a JWT from a site's Automation page |
| that one WordPress site |
The server picks the mode from the credential: a dw_live_ key is sent as
Authorization: Bearer, anything else works exactly as in 0.2.0. Existing per-site
tokens keep working.
Client setup
Claude Code
claude mcp add docswrite -e DOCSWRITE_TOKEN=dw_live_... -- npx -y @docswrite/docswrite-mcpClaude Desktop
Edit claude_desktop_config.json (Settings -> Developer -> Edit Config):
{
"mcpServers": {
"docswrite": {
"command": "npx",
"args": ["-y", "@docswrite/docswrite-mcp"],
"env": { "DOCSWRITE_TOKEN": "dw_live_..." }
}
}
}Cursor
Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"docswrite": {
"command": "npx",
"args": ["-y", "@docswrite/docswrite-mcp"],
"env": { "DOCSWRITE_TOKEN": "dw_live_..." }
}
}
}Other clients (Windsurf, VS Code, Cline, ...) use the same command / args / env.
To run from GitHub instead of npm, replace @docswrite/docswrite-mcp with
github:Docswrite/docswrite-mcp.
Tools (org API key)
docswrite-list-connections
Lists the organization's connections: id, platform, name, status
(connected, needs_attention, or unknown when not checked recently), capabilities,
and api (whether the server can publish to it, which states, which basic options).
Optional filters: platform, status.
docswrite-publish-post
Publishes one Google Doc to one or more connections, one POST /api/posts per connection
(the same request the dashboard composer sends), then waits for the results and returns each
connection's status and live URL, or its error.
connection_ids(required): ids fromdocswrite-list-connectionsgoogle_doc(required): Google Doc URL or ID. The doc must be readable by the Docswrite user who created the API key.state:draft(default),published, orscheduledwithpublish_date(ISO 8601, orYYYY-MM-DDTHH:mmread intimezone, an IANA zone)title: defaults to the doc titleBasic options, where the platform supports them:
Option | WordPress | Hosted blog | Shopify | GitHub | Dev.to | Hashnode | Medium | Ghost | Webflow / Contentful |
| yes | yes | yes | yes | first 4 | first 5 | first 3 | yes | via field mapping |
| yes | yes | |||||||
| Yoast | yes | yes | yes | yes | ||||
| yes | yes | yes | description | yes | ||||
| yes | yes | yes | yes | yes | ||||
| yes | yes | yes | yes | cover | cover | cover | yes | |
| yes | yes | yes | ||||||
| yes |
A connection that does not take an option you set is skipped with an explanation instead of being published without it; the other connections still publish.
platform_options: advanced per-platform settings.webflow.collection_idandcontentful.model_idare required for those platforms; alsowordpress.yoast_settings,rankmath_settings,export_settings,template;shopify.blog_id;github.settings;devto.series;hashnode.subtitle;medium.unlisted.idempotency_key: sent asIdempotency-Key: <key>:<connection_id>. Repeating a call with the same key within 24 h returns the first result instead of publishing twice. A new key is generated per call by default, and internal retries always reuse it.wait_seconds: how long to wait for results (default 90, max 300;0returns job ids).
X and LinkedIn connections are listed but cannot be published to through the API. GitHub has no drafts.
docswrite-list-posts
The organization's posts across connections (published, scheduled, drafts, in-flight and
failed publishes), newest first. Filters: connection_ids, status, platform,
from / to (+ date_field), q (title), sort, limit, cursor.
docswrite-get-post-status
Follows a publish (job_id from docswrite-publish-post) or looks up a post (post_id,
e.g. from a scheduled publish, or an id from docswrite-list-posts).
Tools (per-site token)
docswrite-publish
Publishes a Google Doc to the WordPress site connected to the token. The doc must be
readable by your Docswrite account. Returns a jobId; publishing is asynchronous.
google_docs_url(required): URL of the Google Doctitle,slug,excerpt,authortags,categories: comma-separated namesstate:draft(default),published,future,pending,privatedate: ISO 8601; a future date schedules the postpost_type:post(default) orpagefeatured_image_url,featured_image_alt_text,featured_image_captionexport_settings:compress_images,demote_headings,convert_to_webp,first_image_as_featured_image,add_no_follow_to_external_links,bold_as_strong,wp_content_editoryoast_settings:yoast_focuskw,yoast_metadesc,yoast_titlerankmath_settings:rank_math_focus_keywordnewspack_settings:newspack_article_summary,newspack_article_summary_title,newspack_post_subtitle
docswrite-job-status
Checks a job returned by docswrite-publish (jobId, queueType defaults to post).
state is waiting, active, delayed, completed or failed; a completed job
includes the published post, a failed one includes failedReason.
Optional: Google Docs tools
google-docs-create, google-docs-update, google-docs-search and google-docs-delete
let the assistant write drafts into your own Google Drive. They need your own Google
OAuth client and are hidden unless one is configured:
In Google Cloud Console enable the Google Docs API and Google Drive API and create an OAuth client (type "Web application", redirect URI
http://localhost:3000/oauth2callback).Download the JSON and start the server with
--googleCredentials /path/to/credentials.json(orGOOGLE_CREDENTIALS_PATH).The first Google Docs tool call returns a consent URL; open it, approve, and retry. The token is stored next to the credentials file (override with
--googleToken/GOOGLE_TOKEN_PATH).
Errors
Tool failures come back with isError: true (or, for multi-connection publishes, per
connection in results) and a message the assistant can act on:
401: the key is invalid, revoked or expired. Create or regenerate one on the API Keys page.
402: the organization's plan limit is reached. Upgrade the plan.
403: access denied, e.g. the admin who created the key left the organization (regenerate the key) or the key belongs to another organization.
Cloudflare: if Cloudflare in front of
api.docswrite.comchallenges the request, the message says so (with the Ray ID) instead of reporting a bad key. If the destination WordPress site's Cloudflare/firewall blocks Docswrite, the result names the IPs to allowlist.Unsupported option / platform: the connection is skipped with the list of options it takes.
429: 60 requests per minute per key; the server spaces out its status polling to stay under it.
Per-site token errors are unchanged (401 invalid/expired token, 403 token for another site, inactive plan, failed WordPress publish with the reason).
Development
npm install # also builds via the prepare script
npm test # build + stdio smoke test against a local fake API
npm run inspector # MCP InspectorDOCSWRITE_API_BASE overrides the API host (default https://api.docswrite.com).
Publishing to npm
Not automated (the repo has no workflows).
npm login
npm publish --access publicThis server cannot be deployed
Maintenance
Related MCP Connectors
Publish to self-hosted WordPress from AI agents: markdown, images, SEO, and Notion sync.
Read, write, translate and sync WordPress and Webflow blog articles from Claude.
Publish drafts to Google Docs for review, then revise and resolve reviewer comments in your AI tool
Manage WordPress blogs and WooCommerce shops from Claude, ChatGPT, Cursor and other MCP apps.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables seamless content conversion between multiple formats including Markdown, HTML, and DOCX directly within development environments.11 npm-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables WordPress content extraction, keyword research using Google autocomplete and Trends data, and generation of SEO-optimized content with quality metrics.-
- AlicenseAqualityNot gradedmaintenanceAI-powered WordPress management that enables creating and editing posts, pages, media, plugins, themes, and Gutenberg blocks through natural language with safe-by-default writes and full rollback support.524 npm-
- AlicenseNot gradedqualityBmaintenanceBridges AI writing and content platforms by enabling AI agents to format Markdown and publish posts directly to WeChat Official Accounts with automatic image handling. It supports conversational theme management and streamlined drafting to eliminate the need for manual copy-pasting between editors.84 npm1,332Apache 2.0