mcpField
M
MCP - Dev.to

MCP - Dev.to

Local
github.com/extinctsionSocial Media1Updated 78w ago

About MCP - Dev.to

MCP - Dev.to is a .NET 9 server for interacting with Dev.to articles and users. Its tools cover article discovery and retrieval as well as creating and updating articles.

Key features

  1. 01Fetch latest and top articles
  2. 02Search by tag, username, or query
  3. 03Retrieve article and user details
  4. 04Create and update articles
  5. 05Format responses for readability

Use cases

  1. 01Find Dev.to articles by topic or author
  2. 02Retrieve details for an article or user
  3. 03Publish or revise an article through the API

MCP support

The MCP server exposes tools to fetch latest and top articles, search by tag, retrieve an article by ID, and create articles.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"devto": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"build"
]
}
}
}
Run commanddocker run -i --rm build

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
ocibuild

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.