MCP - Dev.to
About
mcp server to publish dev.to article automatically. In .NET 9
Details
- Author
- extinctsion
- GitHub stars
- 1
- Downloads
- 389
- Categories
- Other
Jump to
- Fetch latest and top articles from Dev.to.
- Search articles by tag, username, or query.
- Retrieve detailed information about articles and users.
- Create and update articles on Dev.to.
- Format responses for better readability.
- Includes MCP tools: GetLatestArticles, GetTopArticles, GetArticlesByTag, GetArticleById, CreateArticle.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MCP - Dev.toCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Clone the repository, add your Dev.to API key to appsettings.json under the "DevTo": { "ApiKey": "your-api-key-here" } section, restore dependencies with dotnet restore, and run the project with dotnet run --project mcp-devto/mcp-devto.csproj. The server exposes HTTP endpoints and MCP tools that can be invoked after setup.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp - dev.to": {
"mcp-devto": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-devto",
"."
]
}
}
}
}
McpServers
{
"mcp-devto": {
"command": "docker",
"args": [
"build",
"-t",
"mcp-devto",
"."
]
}
}
MCP - Dev.to
This project integrates with the Dev.to API to provide tools for interacting with articles, users, and other resources on the platform. It is built using .NET 9.0 and leverages the ModelContextProtocol framework for server-side tooling.
Features
- Fetch latest and top articles from Dev.to.
- Search articles by tag, username, or query.
- Retrieve detailed information about articles and users.
- Create and update articles on Dev.to.
- Format responses for better readability.
Project Structure
- mcp-devto: Main project containing the server and tool definitions.
- Service: Contains the DevToService implementation for interacting with the Dev.to API.
- Model: (Placeholder for shared models, if needed in the future).
Prerequisites
- .NET 9.0 SDK
- Visual Studio 2022 or any compatible IDE.
- A valid Dev.to API key.
Setup
1. Clone the repository:
git clone <repository-url>
cd mcp-devto
2. Add your Dev.to API key to appsettings.json:
"DevTo": {
"ApiKey": "your-api-key-here"
}
3. Restore dependencies:
dotnet restore
4. Run the project:
dotnet run --project mcp-devto/mcp-devto.csproj
Usage
HTTP Endpoints
The project exposes HTTP endpoints for interacting with the Dev.to API. Use the mcp-devto.http file for testing the endpoints with tools like REST Client.
MCP Server Tools
The project also provides tools accessible via the ModelContextProtocol server. These tools include:
- GetLatestArticles: Fetch the latest articles.
- GetTopArticles: Fetch top articles.
- GetArticlesByTag: Fetch articles by a specific tag.
- GetArticleById: Fetch details of an article by its ID.
- CreateArticle: Create a new article.
Docker Support
The project includes a Dockerfile for containerization. To build and run the container:
1. Build the Docker image:
docker build -t mcp-devto .
2. Run the container:
docker run -p 8080:8080 -p 8081:8081 mcp-devto
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
License
This project is licensed under the MIT License.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



