Blog-MCP
Provides tools for interacting with the Dev.to platform, including browsing latest articles, discovering trending content, searching articles by keyword or tag, retrieving author-specific posts, and generating and publishing new blog articles.
Click on "Install 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., "@Blog-MCPShow me the latest Python articles"
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 AI Agent using MCP & OpenAI Agents SDK
An intelligent Dev.to assistant powered by the OpenAI Agents SDK, Model Context Protocol (MCP), Chainlit, and OpenRouter LLMs.
This project demonstrates how AI Agents can dynamically discover and execute tools exposed through a custom MCP Server, enabling natural language interactions with Dev.to. Users can search articles, explore trending content, retrieve author-specific posts, and even generate and publish new blog articlesโall through a conversational interface.
๐ Overview
The Dev.to AI Agent acts as an intelligent bridge between users and the Dev.to platform.
Instead of hardcoding API calls directly into the application, all Dev.to operations are exposed as MCP tools through a custom MCP Server. The AI Agent analyzes user intent, discovers available tools, selects the appropriate tool, executes it, and returns a summarized response.
Example Use Cases
Browse latest Dev.to articles
Discover trending content
Search articles by keyword
Find articles by tag
Explore articles by author
Retrieve article details
Generate and publish new blog posts
Related MCP server: Sentinel Core Agent
โจ Features
๐ค AI-powered Dev.to assistant
๐ MCP-based tool architecture
๐ฐ Browse latest Dev.to articles
๐ฅ Discover trending articles
๐ท๏ธ Search articles by tags
๐ Keyword-based article search
๐ค Find articles by author
โ๏ธ AI-generated article creation
โก Fully asynchronous architecture
๐ฌ Modern conversational UI with Chainlit
๐ง Intelligent tool selection using OpenAI Agents SDK
๐ Easily extensible MCP tool ecosystem
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Chainlit UI โ
โ (app.py) โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ OpenAI Agents SDK โ
โ (mcp_agent.py) โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Dev.to AI Agent โ
โ Instruction Driven โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Server (STDIO) โ
โ (server.py) โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ MCP Tools โ
โโโโโโโโโโโโโโฌโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Dev.to APIs โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ End-to-End Flow
User
โ
โผ
Chainlit Chat Interface
โ
โผ
OpenAI Agent SDK
โ
โผ
Dev.to AI Agent
โ
โผ
MCP Tool Discovery
โ
โผ
Tool Selection
โ
โผ
MCP Tool Execution
โ
โผ
Dev.to API
โ
โผ
Agent Summarization
โ
โผ
Response Displayed in UI๐ฌ User Experience
The application uses Chainlit to provide a modern conversational interface.
Starter Prompts
Users can quickly explore the agent using built-in starter suggestions:
๐ฐ Latest Articles
๐ฅ Top Trending Articles
๐ Python Articles
๐ค AI Articles
๐ Search Articles
โ๏ธ Generate New Article
These prompts help users immediately understand the capabilities of the agent.
โ๏ธ Agent Execution Lifecycle
Every request follows the same execution workflow:
1. User sends a message
2. Chainlit receives the request
3. Thinking indicator is displayed
4. AI Agent is invoked
5. MCP Server starts
6. Agent discovers available tools
7. Agent selects the appropriate tool
8. MCP Tool executes
9. Dev.to API returns data
10. Agent summarizes results
11. Response is displayed to the user๐ ๏ธ Technology Stack
Technology | Purpose |
Python | Core programming language |
Chainlit | Conversational AI interface |
OpenAI Agents SDK | Agent orchestration and tool calling |
MCP (Model Context Protocol) | Tool discovery and execution |
OpenRouter | LLM provider |
Qwen 3 235B | Foundation language model |
AsyncIO | Asynchronous execution |
MCPServerStdio | MCP communication layer |
dotenv | Environment variable management |
๐ Project Structure
project/
โ
โโโ app.py
โโโ mcp_agent.py
โโโ server.py
โโโ .env
โโโ requirements.txt
โโโ README.md๐ File Breakdown
app.py
This file contains the Chainlit user interface and handles all user interactions.
Responsibilities
Displays the chat interface
Registers starter prompts
Receives user messages
Displays agent progress
Shows final responses
set_starters()
Registers predefined starter prompts displayed on an empty chat screen.
Purpose
Improve user onboarding
Demonstrate available capabilities
Provide quick actions
on_chat_start()
Triggered whenever a new conversation begins.
Responsibilities
Displays welcome message
Introduces the assistant
Explains supported actions
on_message()
Main message processing function.
Responsibilities
Receives user input
Displays thinking indicator
Invokes AI agent
Displays final response
Flow
User Message
โ
โผ
on_message()
โ
โผ
agent_main()
โ
โผ
Agent Execution
โ
โผ
Tool Execution
โ
โผ
Response Returned
โ
โผ
UI Updatedmcp_agent.py
This file contains the AI Agent orchestration logic.
It acts as the bridge between:
User Queries
Language Model
MCP Server
MCP Tools
setup_dev_agent()
Creates and configures the Dev.to Agent.
Responsibilities
Defines agent instructions
Connects MCP Server
Attaches language model
Configures tool usage behavior
The agent receives detailed instructions describing:
Which tool should be used
When it should be used
How results should be formatted
This improves tool-calling reliability and response quality.
main()
Primary execution entry point for all requests.
Responsibilities
Starts MCP Server
Creates agent instance
Executes agent workflow
Returns final output
Flow
User Query
โ
โผ
Start MCP Server
โ
โผ
Create Agent
โ
โผ
Run Agent
โ
โผ
Tool Execution
โ
โผ
Final Responseserver.py
This file contains the MCP Server implementation.
The server exposes Dev.to functionality as MCP-compatible tools that can be dynamically discovered and used by the AI Agent.
๐ MCP Tools
The MCP Server exposes multiple tools to the agent.
get_latest_articles()
Returns the latest articles from Dev.to.
get_top_articles()
Returns trending or top-performing articles.
get_articles_by_tag(tag)
Retrieves articles belonging to a specific tag.
Example
Python
JavaScript
AI
MachineLearning
Agentssearch_articles(query)
Performs keyword-based article search.
Example
LangChain
Agentic AI
OpenAI
MCPget_articles_by_username(username)
Returns articles published by a specific author.
get_article_details(article_id)
Retrieves detailed information for a specific article.
create_article()
Creates and publishes a new Dev.to article.
Parameters
title
body_markdown
tags
published๐ค Intelligent Tool Selection
The AI Agent uses instruction-based reasoning to select the correct MCP tool.
Example 1
User:
Show me the latest articlesAgent:
Calls get_latest_articles()Example 2
User:
Search for Agentic AIAgent:
Calls search_articles("Agentic AI")Example 3
User:
Show articles by ThePracticalDevAgent:
Calls get_articles_by_username()Example 4
User:
Create an article about MCP ServersAgent:
Generates content
โ
Calls create_article()๐ Why MCP?
This project intentionally uses Model Context Protocol (MCP) rather than directly integrating APIs into the agent.
Benefits
Standardized tool interface
Dynamic tool discovery
Decoupled architecture
Easier maintenance
Reusable integrations
Future multi-agent compatibility
Scalable tool ecosystem
New tools can be added to the MCP Server without changing the core agent implementation.
๐ธ Screenshots
Home Screen
Add screenshot hereAgent Execution
Add screenshot hereArticle Generation
Add screenshot here๐ Example Queries
Show me the latest Dev.to articlesShow me the top trending articlesFind articles about PythonFind articles about AI agentsSearch for machine learning articlesShow articles by ThePracticalDevCreate a blog about the latest advancements in Agentic AI๐ฎ Future Enhancements
Multi-agent workflows
Medium integration
Hashnode integration
Memory-enabled agents
Blog review agent
SEO optimization agent
Research assistant agent
Content planning agent
Analytics dashboard
Streaming responses
Human approval workflows
๐ฏ Learning Outcomes
This project demonstrates practical implementation of:
OpenAI Agents SDK
MCP (Model Context Protocol)
Tool Calling Agents
Agent Instructions Engineering
Async Python Development
OpenRouter Integration
Chainlit Applications
AI-Powered Content Automation
Agentic AI Workflows
๐ Getting Started
Clone the Repository
git clone https://github.com/Dharshini195/Blog-MCP.git
cd Blog-MCPInstall Dependencies
pip install -r requirements.txtConfigure Environment Variables
Create a .env file:
OPENROUTER_API_KEY=your_openrouter_api_keyRun the Application
chainlit run app.pyOpen the provided local URL and start chatting with the Dev.to Assistant.
๐ License
This project is intended for educational, experimentation, and learning purposes. Feel free to fork, modify, and extend it for your own MCP and Agent Engineering projects.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dharshini195/Blog-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server