devto-mcp
Allows browsing, searching, and reading DEV.to articles, comments, user profiles, and tags, as well as creating, updating, and listing articles for the authenticated user via the DEV.to 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., "@devto-mcpWhat are the top articles on Rust this week?"
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.
DEV.to MCP Server ๐
A Model Context Protocol (MCP) server for DEV.to (Forem API) built with Python and FastMCP.
This server enables AI assistants (Antigravity, Claude Desktop, Cursor, etc.) to browse, search, and read DEV.to articles, inspect comments and user profiles, explore tags, and publish or update draft and live articles.
โจ Features
Public Tools (No API Key Required):
๐ฐ List & Filter Articles: Browse by tags, author username, status (
fresh,rising), or top timeframe.๐ Latest Articles: Stream recent publications.
๐ Full Article Reading: Fetch complete article metadata and raw Markdown body by article ID.
๐ Search: Natural query ranking over DEV.to content and tags.
๐ฌ Discussion & Comments: Read threaded comment trees for any article or comment ID.
๐ค User Profiles: Inspect public user bios, social handles, and publication statistics.
๐ท๏ธ Tags: Explore trending and popular community tags.
Authenticated Tools (Requires
DEVTO_API_KEY):๐ Draft & Publish Articles: Create new articles directly from chat in draft or published mode.
โ๏ธ Update Articles: Modify article titles, Markdown content, or publishing status.
๐ My Articles: List private draft and published articles with view and reaction stats.
๐ Account Details: Query the authenticated user's private profile.
Related MCP server: devto-mvp-server
๐ ๏ธ Installation & Setup
1. Clone & Set Up Environment
cd /path/to/devto-mcp
# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install package and dependencies in editable mode
pip install -e ".[dev]"2. Configure API Key (Optional for Read Operations)
To publish articles or view your own drafts, generate an API key from: ๐ DEV Settings -> Extensions -> DEV Community API Keys
Copy .env.example to .env and set your key:
cp .env.example .envDEVTO_API_KEY=your_devto_api_key_here๐ Client Configurations
Antigravity IDE Setup
Add the following to your Antigravity MCP configuration (e.g. ~/.gemini/antigravity/mcp/devto.json or project MCP config):
{
"mcpServers": {
"devto": {
"command": "/path/to/devto-mcp/.venv/bin/python",
"args": ["/path/to/devto-mcp/src/server.py"],
"env": {
"DEVTO_API_KEY": "your_devto_api_key_here"
}
}
}
}Claude Desktop Setup
In ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"devto": {
"command": "/path/to/devto-mcp/.venv/bin/python",
"args": ["/path/to/devto-mcp/src/server.py"],
"env": {
"DEVTO_API_KEY": "your_devto_api_key_here"
}
}
}
}Cursor Setup
In Cursor Settings -> Features -> MCP:
Name:
devtoType:
commandCommand:
/path/to/devto-mcp/.venv/bin/python /path/to/devto-mcp/src/server.py
๐งฐ Available MCP Tools
Tool | Access | Description |
| Public | List & filter articles by |
| Public | Get the latest articles in reverse chronological order. |
| Public | Fetch full article metadata and raw Markdown body by integer |
| Public | Search articles by text |
| Public | Fetch nested discussion comments for an |
| Public | Fetch a specific comment thread by |
| Public | Fetch user bio, social handles, and metadata by |
| Public | List popular tags with descriptions and colors. |
| Auth | List authenticated user's articles by |
| Auth | Fetch authenticated user's account details. |
| Auth | Create a draft or published article with title, markdown body, tags, series, etc. |
| Auth | Update an existing article's title, body, publication status, or tags. |
๐งช Running Tests
Run the test suite using pytest:
.venv/bin/pytest -v๐ก๏ธ Privacy, Anonymization & Public Showcase
This project is built from the ground up to be 100% safe for public articles, tutorials, video demos, and open source showcases:
Local Secrets Stay Local: Credentials like
DEVTO_API_KEYare stored in.env, which is strictly ignored by.gitignore. No private keys or tokens will ever be committed to version control.Built-in Showcase / Demo Mode (
DEVTO_DEMO_MODE=true): If you are recording a video, writing an article, or taking screenshots, you can enable Demo Mode to return realistic synthetic data (anonymized author profile@demo_author, mock drafts, safe simulated publishing) without needing an API key or modifying production DEV.to accounts:# Enable Demo Mode via environment variable DEVTO_DEMO_MODE=true python -m src.serverAutomated Showcase Script: Run the bundled demonstration script to execute and print all core tool interactions with sanitized outputs:
python scripts/demo.py
๐ License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoโฆ
FastMCP server for posting formatted content to X (Twitter) โ Tollbooth-monetized, DPYC-native
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server implementation that allows AI assistants to access, search, and interact with Dev.to content, including fetching articles, retrieving user information, and publishing new content.1062MIT
- AlicenseNot gradedqualityDmaintenanceThis is a complete MCP (Model Context Protocol) server that implements a articles of dev.to with robust validation using TypeScript and Zod. The server integrates directly with Cursor, allowing you search articles on dev.to.9 npmMIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server implementation built with Python and FastAPI for educational purposes. Demonstrates MCP server functionality through a books API interface.MIT
- AlicenseAqualityCmaintenanceA 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.167 npm5MIT