Skip to main content

Dev.to MCP Server

This repository contains a Model Context Protocol server implementation for Dev.to that allows AI assistants to access and interact with Dev.to content.

Dev.to Server MCP server

image

What is MCP?

The Model Context Protocol (MCP) is a standard for enabling AI assistants to interface with external services, tools, and data sources. This server implements the MCP specification to provide access to Dev.to content. To know more about MCP, Check this video

Features

  • Fetch latest and trending articles from Dev.to
  • Search for articles by various criteria
  • Get detailed information about specific articles
  • Get Detailed information about a User.
  • Access articles by tag or username
  • Create and publish new articles to Dev.to
  • Update existing articles
  • Caching mechanism to improve performance and reduce API calls

Installation

  1. Clone this repository
git clone https://github.com/Arindam200/devto-mcp.git
cd devto-mcp
  1. Connect to the MCP server

    Copy the below json with the appropriate {{PATH}} values:

    {
     "mcpServers": {
       "devto": {
         "command": "{{PATH_TO_UV}}", // Run `which uv` and place the output here
         "args": [
                   "--directory",
                   "{{PATH_TO_SRC}}",// cd into the repo, run `pwd` and enter the output here
                   "run",
                   "server.py"
         ],
         "env": {
           "DEV_TO_API_KEY":"Your Dev.to API Key" // Get it from https://dev.to/settings/extensions.
         }
       }
     }
    }
    

    You can obtain a Dev.to API key from your Dev.to settings page.

    For Claude, save this as claude_desktop_config.json in your Claude Desktop configuration directory at:

    ~/Library/Application Support/Claude/claude_desktop_config.json
    

    For Cursor, save this as mcp.json in your Cursor configuration directory at:

    ~/.cursor/mcp.json
    
  2. Restart Claude Desktop / Cursor

    Open Claude Desktop and you should now see Devto as an available integration.

    Or restart Cursor.

Available Tools

The server provides the following tools:

  • get_latest_articles() - Get the latest articles from Dev.to
  • get_top_articles() - Get the most popular articles from Dev.to
  • get_articles_by_tag(tag) - Get articles by tag
  • get_article_by_id(id) - Get a specific article by ID
  • search_articles(query, page=1) - Search for articles by keywords in title/description
  • get_article_details(article_id) - Get full content and metadata for a specific article
  • get_articles_by_username(username) - Get articles written by a specific author
  • create_article(title, body_markdown, tags, published) - Create and publish a new article
  • update_article(article_id, title, body_markdown, tags, published) - Update an existing article

Example Queries

Here are some examples of what you can ask an AI assistant connected to this server:

  • "Find articles about Python on Dev.to"
  • "Show me the latest Dev.to articles"
  • "Get details for article 1234"
  • "What articles has user 'ben' written?"
  • "Search for articles about machine learning"
  • "Create a new article titled 'Getting Started with Python'"
  • "Update my article with ID 5678 to fix a typo in the content"

Authentication

The server requires a Dev.to API key for certain operations, particularly for creating and updating articles. The API key should be set as an environment variable DEV_TO_API_KEY.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for iflow-mcp_devto-mcp-server 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_devto-mcp-server 0.1.0
File Size Uploaded
iflow_mcp_devto_mcp_server-0.1.0.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_devto-mcp-server 0.1.0
File Interpreter ABI Platform
iflow_mcp_devto_mcp_server-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / iflow_mcp_devto_mcp_server-0.1.0.tar.gz

Download URL iflow_mcp_devto_mcp_server-0.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
34515d4d6561de7d589cb53358424de020e7b5dad00496ca398a32a5792a4b37
BLAKE2b-256 checksum
How to use checksums
743d1a8861a359c493aa045e2de23a7a69309a5999b510166e36ae7dad0cd1d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.9

Release files / iflow_mcp_devto_mcp_server-0.1.0-py3-none-any.whl

Download URL iflow_mcp_devto_mcp_server-0.1.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9fb54f4fbd66b08d4be35165dc36e6ad55f40802bb58e575fcad6ebfefa0e06
BLAKE2b-256 checksum
How to use checksums
200bfa50b845d24b3bc23cda9e0a5ac32e571e48a8e957c4a97e13bb6cc692f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page