mcp-py-devto
MCP server written in python for dev.to
claude mcp add --transport stdio extinctsion-mcp-py-devto python -m mcp_py_devto \ --env DEVTO_API_KEY="your_api_key_here"
How to use
This MCP server provides a Python-based integration with dev.to, enabling message-driven interactions with the dev.to API. It exposes endpoints for creating, updating, deleting, and retrieving articles, and supports message-based routing and basic RESTful communication to manage content on dev.to. You can interact with the server via the built-in client library or direct HTTP requests to the provided endpoints. The server listens on the configured port (default 8080) and is designed to be run within a Python environment with the required API key.
To operate it, ensure you have a valid dev.to API key and set it in the environment or configuration. Use the included MCP client to send messages with actions such as create_article, update_article, delete_article, and get_article, providing the necessary data like title, content, and article_id. The server will handle routing, queuing, and real-time updates to reflect changes on dev.to.
How to install
Prerequisites:
- Python 3.11 or higher
- pip (Python package manager)
- dev.to API key
Installation steps:
- Clone the repository and navigate to the project:
git clone https://github.com/yourusername/mcp-py-devto.git
cd mcp-py-devto
- Create and activate a virtual environment:
python -m venv venv
# Windows
venv\Scripts\activate
# Unix/macOS
source venv/bin/activate
- Build/install the Python package from the repository (local development install):
pip install .
-
Configure the API key by setting DEVTO_API_KEY in your environment or in the project configuration (see Configuration section in README).
-
Run the MCP server (via the Python module entry point):
# Example (from project root, with proper environment variable set):
python -m mcp_py_devto
Note: If you prefer running via an IDE, open the project in VSCode, configure DEVTO_API_KEY in .vscode/mcp.json, and start the server using the Start button.
Additional notes
Tips and notes:
- Ensure you have a valid dev.to API key and grant the necessary permissions for article management.
- Set DEVTO_API_KEY in your environment or in the configured mcp.json so the server can authenticate requests to dev.to.
- The server exposes endpoints such as POST /message, GET /status, and GET /metrics for monitoring and control.
- If you encounter authentication or rate-limit issues, verify your API key and review dev.to API rate limits.
- For local development, use a virtual environment to manage dependencies and avoid conflicts with system Python.
- When changing code, reinstall the package (pip install .) or run in editable mode if supported by your setup.
- If your deployment requires a different port, check the server configuration to modify the listening port accordingly.
Related MCP Servers
unsplash
🔎 A MCP server for Unsplash image search.
pydantic-rpc
PydanticRPC is a Python library for rapidly exposing Pydantic models as gRPC, ConnectRPC, and MCP services without protobuf files.
python
🔐 Plug-and-play auth for Python MCP servers.
mcp-android -python
MCP Android agent - This project provides an *MCP (Model Context Protocol)* server for automating Android devices using uiautomator2. It's designed to be easily plugged into AI agents like GitHub Copilot Chat, Claude, or Open Interpreter to control Android devices through natural language.
pfsense
pfSense MCP Server enables security administrators to manage their pfSense firewalls using natural language through AI assistants like Claude Desktop. Simply ask "Show me blocked IPs" or "Run a PCI compliance check" instead of navigating complex interfaces. Supports REST/XML-RPC/SSH connections, and includes built-in complian
Vector-Knowledge-Base
A semantic search engine that transforms your documents into an intelligent, searchable knowledge base using vector embeddings and AI