DEV Community

Cover image for I Built an MCP Server for DevTo (100% Open Source)πŸŽ‰
Arindam Majumder
Arindam Majumder Subscriber

Posted on β€’ Edited on

153 31 28 25 24

I Built an MCP Server for DevTo (100% Open Source)πŸŽ‰

MCP is Trending Everywhere! Of course, for a Good Reason!

Since launch, It has seen a wide adoption in the developer community. Starting from OpenAI to Google, Everyone has adopted this Protocol.

So, I thought of building an MCP server for Dev.to (My Favourite Platform for writing Blogs)

If you're actively building Agents or trying to automate your workflow, this MCP server will really help you!


What is MCP?

MCP Image

Before we begin, let's understand what MCP is!

MCP stands for Model Context Protocol. It's an open-source protocol, made by Anthropic, the company behind Claude, that lets AI assistants (like Claude Desktop, Cursor, or even your own custom agents) connect to external services and interact with them like a pro.

You can think of it as a "USB-C for AI" - a universal connector for LLms to plug into APIs, tools, and data sources.

MCP Architecture

MCP has three main components:

  • MCP Hosts: AI apps (like Claude Desktop, IDEs like Cursor) that initiate connections.
  • MCP Clients: Middlemen inside the hosts that manage those connections.
  • MCP Servers: Lightweight programs exposing specific capabilities (like GitHub, Slack... or now, Dev.to!)

Here's a Video Guide on MCP:

I also built this MCP Server for Devto that you can use with any MCP Hosts.


What is DevTo MCP Server?

Demo

I was recently building a lot of AI Agents and Agentic Workflows. For one of such projects, I was looking for a way to interact with Dev.to.

That's when the idea struck: "Why not build an MCP server for Dev.to?"

This Server gives a simplified way for the Agents and other MCP hosts to interact with the Dev.to Content.

With this Dev.to MCP server, you can now:

  • Fetch the latest and trending articles from Dev.to
  • Search articles by keyword, tag, or username
  • Get full article details
  • Create and publish new articles right from your AI workspace.
  • Update your existing posts
  • All with built-in caching to keep things smooth and fast

Right now, it covers the core features, and I'm currently working on adding more features to it.

Check out DevTo MCP


How to Use it?

I have also made a full video walkthrough showing you exactly how to set it up!
You can watch it here:

Getting started is super simple. You just need:

  • Your Dev.to API key
  • Claude Desktop (or any MCP Host of your choice)

Here’s the quick start guide:

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

Create a JSON config like this (replace the {{PATH}} placeholders):

   {
    "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.
        }
      }
    }
   }
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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

   ~/.cursor/mcp.json
Enter fullscreen mode Exit fullscreen mode
  1. Restart Claude Desktop / Cursor

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

Or restart Cursor.


That's it! πŸŽ‰

Now you can publish blogs, fetch articles, and interact with Dev.to content right from your AI workspace without ever opening your browser.

Would love for you to try it out and share any feedback!

And if you find it useful, feel free to ⭐ the repo!

Thanks a lot for reading it till the End!

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly β€” using the tools and languages you already love!

Learn More

Top comments (46)

Collapse
 
fmerian profile image
flo merian β€’

lfg! we recently launched the Bucket MCP server to flag features, manage company data, and control feature access. really looking forward to this growing ecosystem

Collapse
 
arindam_1729 profile image
Arindam Majumder β€’

Oh, this looks pretty cool. I'll give it a try!

Collapse
 
fmerian profile image
flo merian β€’

please keep me posted! would love to have your feedback

Thread Thread
 
arindam_1729 profile image
Arindam Majumder β€’

Sure

Collapse
 
eft31540 profile image
eft31540 β€’

I am developing an open source and hope everyone can help!!!

Click here

Collapse
 
srbhr profile image
πš‚πšŠπšžπš›πšŠπš‹πš‘ πšπšŠπš’ β€’

I just published about a beginner's guide to MCP as well.
MCPs are going in great! Let me publish one article using your MCP. πŸ”₯

Collapse
 
arindam_1729 profile image
Arindam Majumder β€’

Sure!

Let me know how that Goes!

Collapse
 
ben profile image
Ben Halpern β€’

πŸ‘€

Collapse
 
async_dime profile image
B G Adam β€’

Thanks Arindam for compiling this, def will check it later on !

Collapse
 
arindam_1729 profile image
Arindam Majumder β€’

Sure, let me know How that goes!

Collapse
 
aniruddhaadak profile image
ANIRUDDHA ADAK β€’

Awesome content! It’s exactly what I needed! ❀️

Collapse
 
arindam_1729 profile image
Arindam Majumder β€’

Great to hear that!

Collapse
 
ddebajyati profile image
Debajyati Dey β€’

Fantastic!

Collapse
 
arindam_1729 profile image
Arindam Majumder β€’

Glad you liked it!

Collapse
 
chideracode profile image
Chidera Humphrey β€’

This is a nice project, Arindam. I don't know much about MCP servers but it's something I'm looking to delve into. And this article will come in handy.

Collapse
 
arindam_1729 profile image
Arindam Majumder β€’

Awesome.

I also have a tutorial around MCP, This will help you to understand MCP in under 10 mins

Feel Free to ask any Questions!

Collapse
 
singhaayush profile image
Aayush Singh β€’

great bro!! I just saw the repo and your video too its fantastic.

Collapse
 
arindam_1729 profile image
Arindam Majumder β€’

Thanks Aayush for Supporting!

Collapse
 
srijan-xi profile image
Srijan Kumar β€’

it is useful for me and thanks for that tutorial

Collapse
 
arindam_1729 profile image
Arindam Majumder β€’

Thanks a lot, Srijan!

Would love to know what you're building with it.

Collapse
 
aralroca profile image
Aral Roca β€’

Very interesting. Thanks for that tutorial

Collapse
 
arindam_1729 profile image
Arindam Majumder β€’

Glad you liked it Aral!

Some comments may only be visible to logged-in visitors. Sign in to view all comments. Some comments have been hidden by the post's author - find out more

Sentry image

Make it make sense

Only get the information you need to fix your code that’s broken with Sentry.

Start debugging β†’