
jamesjohnsdev/code-research-mcp-server 是从 https://github.com/jamesjohnsdev/code-research-mcp-server. 导入的 MCP 服务器候选服务器。
概览
jamesjohnsdev/code-research-mcp-server 是从 https://github.com/jamesjohnsdev/code-research-mcp-server. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
一个模型上下文协议服务器,提供跨多个平台搜索和访问编程资源的工具。该服务器集成了流行的开发者平台,帮助大型语言模型(LLM)找到相关的代码示例、文档和包。
特色
综合平台
- Stack Overflow - 程序问答
- MDN Web 文档 - 网页开发文档
- GitHub - 代码与仓库搜索
- npm - JavaScript 包注册表
- PyPI - Python 软件包索引
工具
search_stackoverflow
在 Stack Overflow 搜索编程问题和答案。
- 参数:
query(必需):搜索查询字符串limit(可选):最大结果(1-10,默认:5)- 返回:格式化的问题列表,包含分数、答案数和摘录
- 结果缓存1小时
search_mdn
搜索MDN Web Docs以获取网页开发文档。
- 参数:
query(必需):搜索查询字符串- 返回:前五名MDN文档匹配,附有摘要和链接
- 结果缓存1小时
search_github
在GitHub上搜索代码库和代码示例。
- 参数:
query(必需):搜索查询字符串
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Code Research MCP Server
A Model Context Protocol server that provides tools for searching and accessing programming resources across multiple platforms. This server integrates with popular developer platforms to help LLMs find relevant code examples, documentation, and packages.
Features
Integrated Platforms
- Stack Overflow - Programming Q&A
- MDN Web Docs - Web development documentation
- GitHub - Code and repository search
- npm - JavaScript package registry
- PyPI - Python package index
Tools
search_stackoverflow
Search Stack Overflow for programming questions and answers.
- Parameters:
query(required): Search query stringlimit(optional): Maximum results (1-10, default: 5)
- Returns: Formatted list of questions with scores, answer counts, and excerpts
- Results are cached for 1 hour
search_mdn
Search MDN Web Docs for web development documentation.
- Parameters:
query(required): Search query string
- Returns: Top 5 MDN documentation matches with summaries and links
- Results are cached for 1 hour
search_github
Search GitHub for both repositories and code examples.
- Parameters:
query(required): Search query stringlanguage(optional): Filter by programming languagelimit(optional): Maximum results per category (1-10, default: 5)
- Returns: Two sections:
- Top repositories sorted by stars
- Relevant code files with repository context
- Results are cached for 1 hour
search_npm
Search npm registry for JavaScript packages.
- Parameters:
query(required): Search query stringlimit(optional): Maximum results (1-10, default: 5)
- Returns: Package information including version, description, and download stats
- Results are cached for 1 hour
search_pypi
Search PyPI for Python packages.
- Parameters:
query(required): Search query string
- Returns: Detailed package information including version, author, and links
- Results are cached for 1 hour
search_all
Search all platforms simultaneously for comprehensive results.
- Parameters:
query(required): Search query stringlimit(optional): Maximum results per platform (1-5, default: 3)
- Returns: Combined results from all platforms:
- Stack Overflow questions and answers
- MDN documentation
- GitHub repositories and code
- npm packages
- PyPI packages
- Results are cached for 1 hour
- Note: Executes all searches in parallel for faster response
Requirements
- Node.js >= 20.11.0
- npm >= 10.0.0
- Optional: GitHub personal access token for higher API rate limits
Installation
Installing via Smithery
安装
npx -y @smithery/cli install @nahmanmate/code-research-mcp-server --client claude配置
{
"mcpServers": {
"code-research": {
"command": "node",
"args": ["/absolute/path/to/code-research-mcp-server/build/index.js"],
"env": {
"GITHUB_TOKEN": "your_github_token" // Optional: Prevents rate limiting
},
"disabled": false,
"alwaysAllow": []
}
}
}