
arindam200/devto-mcp 是从 https://github.com/arindam200/devto-mcp. 导入的 MCP 服务器候选
概览
arindam200/devto-mcp 是从 https://github.com/arindam200/devto-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
该仓库包含一个模型上下文协议服务器实现 Dev.to 允许AI助手访问和交互 Dev.to 内容。
什么是MCP?
模型上下文协议(MCP)是一项标准,用于使人工智能助手能够与外部服务、工具和数据源接口。该服务器实现了MCP规范,以提供对 Dev.to 内容的访问。想了解更多关于MCP的信息,请观看此视频
特色
- 获取最新热门文章 Dev.to
- 通过多种标准搜索条目
- 获取特定条目的详细信息
- 获取用户的详细信息。
- 通过标签或用户名访问文章
- 创建并发布新文章以 Dev.to
- 更新现有条目
- 缓存机制以提升性能并减少 API 调用
安装
-
克隆此仓库
-
连接到MCP服务器
复制以下json,并使用相应的{{PATH}}值:
你可以从 Dev.to 设置页面获取 Dev.to API密钥。
对于Claude,请在你的Claude桌面配置文件目录中保存为claude_desktop_config.json:
对于光标,保存为’mcp。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Dev.to MCP Server
This repository contains a Model Context Protocol server implementation for Dev.to that allows AI assistants to access and interact with Dev.to content.
What is MCP?
The Model Context Protocol (MCP) is a standard for enabling AI assistants to interface with external services, tools, and data sources. This server implements the MCP specification to provide access to Dev.to content. To know more about MCP, Check this video
Features
- Fetch latest and trending articles from Dev.to
- Search for articles by various criteria
- Get detailed information about specific articles
- Get Detailed information about a User.
- Access articles by tag or username
- Create and publish new articles to Dev.to
- Update existing articles
- Caching mechanism to improve performance and reduce API calls
Installation
- Clone this repository
git clone https://github.com/Arindam200/devto-mcp.git
cd devto-mcp
-
Connect to the MCP server
Copy the below json with the appropriate {{PATH}} values:
{ "mcpServers": { "devto": { "command": "{{PATH_TO_UV}}", // Run `which uv` and place the output here "args": [ "--directory", "{{PATH_TO_SRC}}",// cd into the repo, run `pwd` and enter the output here "run", "server.py" ], "env": { "DEV_TO_API_KEY":"Your Dev.to API Key" // Get it from https://dev.to/settings/extensions. } } } }You can obtain a Dev.to API key from your Dev.to settings page.
For Claude, save this as
claude_desktop_config.jsonin your Claude Desktop configuration directory at:~/Library/Application Support/Claude/claude_desktop_config.jsonFor Cursor, save this as
mcp.jsonin your Cursor configuration directory at:~/.cursor/mcp.json -
Restart Claude Desktop / Cursor
Open Claude Desktop and you should now see Devto as an available integration.
Or restart Cursor.
Available Tools
The server provides the following tools:
get_latest_articles()- Get the latest articles from Dev.toget_top_articles()- Get the most popular articles from Dev.toget_articles_by_tag(tag)- Get articles by tagget_article_by_id(id)- Get a specific article by IDsearch_articles(query, page=1)- Search for articles by keywords in title/descriptionget_article_details(article_id)- Get full content and metadata for a specific articleget_articles_by_username(username)- Get articles written by a specific author
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"devto": {
"command": "{{PATH_TO_UV}}", // Run `which uv` and place the output here
"args": [
"--directory",
"{{PATH_TO_SRC}}",// cd into the repo, run `pwd` and enter the output here
"run",
"server.py"
],
"env": {
"DEV_TO_API_KEY":"Your Dev.to API Key" // Get it from https://dev.to/settings/extensions.
}
}
}
}