MCP ExplorerExplorer

Mcp Devto

@extinctsionon 10 months ago
1 MIT
FreeCommunity
AI Systems
#dotnet#dotnet9#hacktoberfest#mcp#mcp-server#open-source
MCP server to publish dev.to article automatically

Overview

What is Mcp Devto

MCP - Dev.to is a .NET 9.0 project that integrates with the Dev.to API, enabling users to interact with articles, users, and various resources on the platform. It utilizes the ModelContextProtocol framework for server-side operations and provides a structured way to access Dev.to’s features.

Use cases

This project can be used to fetch the latest and top articles from Dev.to, search for articles by tags or usernames, retrieve detailed article and user information, and create or update articles. It’s useful for developers looking to enhance content interaction on the Dev.to platform.

How to use

To use the project, clone the repository, add your Dev.to API key to the appsettings.json file, restore the project dependencies using ‘dotnet restore’, and then run the project using ‘dotnet run’. Alternatively, it can be containerized using Docker for easier deployment.

Key features

Key features include fetching latest and top articles, searching articles by tags or queries, retrieving detailed information about articles and users, and creating new articles. The project also formats responses for easier readability.

Where to use

This project is intended for use in environments where integration with the Dev.to API is beneficial, such as content management systems, blogging tools, or applications aimed at enhancing user engagement with developer-related articles.

Content

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

Setup

  1. Clone the repository:

    git clone <repository-url>
    cd mcp-devto
    
  2. Add your Dev.to API key to appsettings.json:

  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.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers