Get the FREE Ultimate OpenClaw Setup Guide →

devto

MCP Server of DevTo

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio arindam200-devto-mcp {{PATH_TO_UV}} --directory {{PATH_TO_SRC}} run server.py \
  --env DEV_TO_API_KEY="Your Dev.to API Key"

How to use

The Dev.to MCP server exposes a programmable interface to interact with Dev.to content from an AI agent. It includes capabilities to fetch the latest and trending articles, search by keywords, retrieve article details, access articles by a specific user or tag, and even create or update articles on Dev.to. This enables an AI assistant to perform content discovery, summarize articles, and manage content workflows through well-defined tools. To use it, connect your MCP-enabled agent (via Claude Desktop, Cursor, or another MCP client) and reference the devto server. After initialization, you can issue natural language requests like “Show me the latest Dev.to articles about Python,” “Get article details for ID 12345,” or “Create a new article titled ‘Getting Started with Python’.” The server will route these requests to the appropriate tools and return structured results.

How to install

Prerequisites:

  • Python installed (recommended version compatible with your uv toolchain)
  • Access to the web for Dev.to API and an API key
  • MCP-compatible client (Claude Desktop, Cursor, or similar)

Installation steps:

  1. Clone the repository and install dependencies (adjust commands to your environment): git clone https://github.com/Arindam200/devto-mcp.git cd devto-mcp

    Install dependencies if a virtual environment is provided (example)

    python -m venv venv source venv/bin/activate pip install -r requirements.txt

  2. Prepare the MCP configuration (example placeholders provided):

    • Ensure you have uv installed and accessible in PATH
    • Create the mcp.json configuration using the snippet below, replacing placeholder paths:

    { "mcpServers": { "devto": { "command": "<PATH_TO_UV>", "args": [ "--directory", "<PATH_TO_SRC>", "run", "server.py" ], "env": { "DEV_TO_API_KEY": "Your Dev.to API Key" } } } }

  3. Start the MCP server using your MCP client configuration. The command will be determined by the client based on the mcp_config above. For example, if using a CLI-based approach, ensure the environment variable DEV_TO_API_KEY is set and run the configured uv command to host server.py.

  4. Connect your MCP client to the devto server named 'devto' and begin issuing tool-based queries and actions.

Additional notes

Notes and tips:

  • You must provide a valid Dev.to API key (DEV_TO_API_KEY) for create/update operations.
  • The server exposes these core tools: get_latest_articles, get_top_articles, get_articles_by_tag, get_article_by_id, search_articles, get_article_details, get_articles_by_username, create_article, update_article.
  • If you encounter authentication errors, verify that DEV_TO_API_KEY is correctly set in the environment and that the key has the necessary scopes from Dev.to settings.
  • Use consistent IDs when requesting article details (e.g., get_article_by_id).
  • To optimize performance, utilize the server’s caching (if enabled) to reduce repeated API calls for frequent queries.
  • Ensure network access to Dev.to API is not blocked by corporate firewall or proxies; configure the environment accordingly if needed.

Related MCP Servers

Sponsor this space

Reach thousands of developers