devto-mcp-server
Provides tools for interacting with the dev.to API, enabling article management (listing, creating, updating, publishing, and unpublishing), retrieving the authenticated user's profile and articles, and accessing analytics.
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., "@devto-mcp-server List my published articles on Dev.to"
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.
devto-mcp-server
A Model Context Protocol server for the Dev.to / Forem API.
Every one of Forem's 139 published operations is accounted for: 49 are reachable through this server, and the other 90 are listed with the reason they are not. That claim is checked by a test against Forem's own OpenAPI spec, so when Forem ships an endpoint the build goes red rather than the README quietly becoming untrue.
MIT licensed.
Install
npm install -g @nasdigitaluk/devto-mcpGet an API key from dev.to → Settings → Extensions → API Keys.
{
"mcpServers": {
"devto": {
"command": "devto-mcp",
"env": { "DEVTO_API_KEY": "your-key-here" }
}
}
}That is the whole setup. There is no account to register, no capability to grant and no service to run alongside it — the API key is the authorization.
Related MCP server: DevTo-MCP
Configuration
Variable | |
| Required. |
| Point at a self-hosted Forem instance. Defaults to |
| Refuse anything that changes state. |
| Allow writes, refuse unpublishing. |
Tools
Nine tools cover 49 operations. That ratio is deliberate: every tool's name and description is paid for in the model's context window on every turn, used or not, so the common path gets purpose-built tools and the long tail goes through one dispatcher.
Tool | |
| Browse the catalogue, including what is excluded and why. Start here. |
| Call any covered operation by id. |
| The authenticated profile. |
| Your own articles. Defaults to all, see below. |
| Create. Drafts unless you ask otherwise. |
| Edit content. Never changes publish state. |
| Publish a draft. Its own tool, deliberately. |
| Take one down. Marked destructive. |
| All eight of Forem's reports. |
Three behaviours worth knowing
Listing your articles defaults to all. /articles/me returns published articles only. An account whose work is all drafts looks completely empty through it, which is exactly what happened in the server this was rewritten from — six real drafts, and the tool reported two articles.
Creating an article makes a draft. Publishing is immediate and public, so it is a decision rather than a default: pass published: true, or use devto_publish_article afterwards.
Editing never changes publish state. Publishing is a separate tool so that fixing a typo can never take a live article down, and unpublishing can never happen as a side effect of an edit.
What is excluded, and why
Forem's API is one spec serving both hosted dev.to and self-hosted instances, so a large part of it is for whoever operates the instance rather than whoever writes on it.
Excluded | Count | Why |
Admin-tagged endpoints | 26 | Need an admin key on a self-hosted Forem. |
Moderation actions | 8 | Suspend, spam, limited, trusted, unpublish-user. Forem tags these |
Segments, surveys, billboards, concepts | 24 | Instance features, administered by the operator. |
Pages, events, subforems, recommendation lists | 15 | Instance structure. |
Badge and organisation mutations | 8 | Minting a badge or creating an organisation is instance administration. The reads are covered. |
Health checks | 3 | Report on the server, not on your account. |
Agent sessions | 5 | Forem's own feature; unrelated to MCP. |
The spec endpoint | 1 | Already vendored in this repo. |
devto_list_operations with include_excluded: true gives the same information at runtime, per operation.
The exclusions are enforced rather than documented: asking devto_call for suspendUser returns the reason, not a 403 from Forem after the fact.
Refreshing the catalogue
curl -o vendor/forem-openapi.json \
https://raw.githubusercontent.com/forem/forem/main/swagger/v1/api_v1.json
npm run generate
npm testThe coverage test names anything newly unclassified. Classify it in scripts/generate-operations.mjs and regenerate.
Testing
npm test # 21 tests
npm run build
node scripts/smoke.mjs # real MCP over stdio, 9 checksThe smoke test is the one that matters. It speaks actual MCP to the built server with FLEET_BOARD_URL and OPENCLAW_MCP_AGENT_ID explicitly cleared, and asserts that no tool asks for an agent_id, that no private vocabulary appears in any description, and that a read tool works with nothing else running.
That is not hypothetical. This server was extracted from one where every write tool called a private task board at 127.0.0.1:8420 and failed closed — so cloned by anyone else, every write tool was permanently broken, and agent_id was a required field on all of them.
Built on
@nasdigitaluk/mcp-server-core — the hardened fetch layer, pluggable authorization, error sanitisation and coverage checking shared across this family of servers.
Licence
MIT.
Available Tools
9 toolsdevto_callA
Call any operation listed by devto_list_operations. Use this for anything the purpose-built tools below do not cover.
Inputs: operation_id (required), body, params.
devto_create_articleA
Create an article. Creates a DRAFT unless you explicitly pass published: true — publishing is a real, immediate, public action and should be a decision rather than a default.
Inputs: title (required), body_markdown (required), tags, series, +5 more.
devto_get_analyticsA
Author analytics. All eight reports Forem publishes are available; totals and past_day need no date range.
Inputs: report (required), end, start.
devto_get_meB
The authenticated user's own profile.
Inputs: no named parameters.
devto_list_my_articlesA
List your own articles. Defaults to ALL of them: /articles/me returns published articles only, so a drafts-only account looks empty through it.
Inputs: page, state, per_page.
devto_list_operationsA
Browse the 139 operations in the Forem/Dev.to API — 49 reachable through this server and 90 excluded, each with the reason why. Call this first to find the operation id for devto_call.
Inputs: search, include_excluded.
devto_publish_articleA
Publish an existing draft. This makes it publicly visible immediately. Kept as its own tool rather than a field on devto_update_article so that editing a typo can never change an article's publish state by accident.
Inputs: id (required).
devto_unpublish_articleA
Take a published article down. It becomes a draft again rather than being deleted — Forem has no delete-article endpoint at all, so nothing here can destroy an article.
Inputs: id (required).
devto_update_articleA
Edit an existing article. Omitted fields are left alone; the publish state is never changed here — use devto_publish_article or devto_unpublish_article for that.
Inputs: id (required), tags, title, series, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
The purpose-built tools each target a distinct action/resource: profile, own articles, create/update/publish/unpublish, and analytics. devto_call is explicitly scoped to operations not covered by the purpose-built tools, so its overlap is intentional and clear.
All tools share the devto_ prefix and use snake_case, mostly following a verb_noun pattern. The only notable deviation is devto_call, which is a verb without an explicit object, but this is minor and still predictable in context.
9 tools is a well-scoped set: seven focused article/profile/analytics operations plus a discovery/call pair that prevents the surface from needing dozens of purpose-built tools. Each tool earns its place.
The set covers the core article lifecycle—create, list, update, publish, unpublish—plus profile and analytics, and explicitly documents why delete is not available. The devto_list_operations/devto_call pair also provides access to all other reachable Forem API operations, so no major gaps remain.
Maintenance
Related MCP Connectors
DEV.to MCP — wraps the DEV Community API (free, no auth for public reads)
Manage Pipefork API projects, drafts, connections, secrets, and deployments through MCP.
Create, schedule, and publish social posts, manage accounts, and read analytics as MCP tools.
Manage FeatureOS feedback boards, roadmaps, changelogs and help-center articles from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with the dev.to platform through its public API. Allows users to retrieve articles, user profiles, tags, comments, and perform article searches without requiring authentication.46MIT
- AlicenseAqualityDmaintenanceA production-ready MCP server for the DEV Community (Forem) API, enabling management of articles, comments, users, tags, organizations, reading list, and followers through any MCP-compatible client.1611 npm6MIT
- FlicenseNot gradedqualityDmaintenanceProvides MCP tools to interact with Dev.to, enabling searching, browsing, and publishing articles through natural language.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with the Dev.to platform through MCP tools, including article search, retrieval, and creation.-