Code Research MCP Server
The Code Research MCP Server provides tools for searching programming resources across multiple platforms:
Search Stack Overflow: Find programming questions and answers with optional result limits.
Search MDN Web Docs: Retrieve web development documentation with summaries and links.
Search GitHub: Discover repositories and code examples, optionally filtered by programming language.
Search npm: Find JavaScript packages with details like version and description.
Search PyPI: Get Python package information including version and author.
Search All Platforms: Query all integrated platforms simultaneously for comprehensive results.
Search GitHub for both repositories and code examples through the search_github tool
Search MDN Web Docs for web development documentation through the search_mdn tool
Search npm registry for JavaScript packages through the search_npm tool
Search PyPI for Python packages through the search_pypi tool
Search Stack Overflow for programming questions and answers through the search_stackoverflow tool
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Code Research MCP Server search for Python async web scraping examples"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: DocumentSearch MCP
Requirements
Node.js >= 20.11.0
npm >= 10.0.0
Optional: GitHub personal access token for higher API rate limits
Installation
Installing via Smithery
To install Code Research Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @nahmanmate/code-research-mcp-server --client claudeManual Installation
Clone the repository and install dependencies:
git clone https://github.com/nahmanmate/code-research-mcp-server.git
cd code-research-server
npm installBuild the server:
npm run buildConfigure MCP Settings:
Add the server configuration to your MCP settings file:
VSCode:
~/.vscode-server/data/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.jsonClaude Desktop:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%/Claude/claude_desktop_config.json
{
"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": []
}
}
}Note: Replace /absolute/path/to with the actual path where you cloned the repository.
Development
Running in Development Mode
For development with auto-rebuild on changes:
npm run watchError Handling
The server implements robust error handling:
API-specific error messages for each platform
Rate limit handling for GitHub API
Graceful fallbacks for service unavailability
Cached responses to reduce API load
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector for detailed request/response monitoring:
npm run inspectorThe Inspector provides:
Real-time request/response monitoring
Tool execution tracing
Error stack traces
Performance metrics
Visit the provided URL in your browser to access the debugging interface.
Caching
Results are cached using node-cache:
Default TTL: 1 hour
Separate cache keys per query/limit combination
Platform-specific caching strategies
Memory-efficient storage
Contributing
Fork the repository
Create a feature branch
Commit your changes
Push to the branch
Create a Pull Request
License
AGPLv3
Available Tools
6 toolssearch_allC
Search all platforms simultaneously
Inputs: query (required), limit.
search_githubC
Search GitHub for repositories and code
Inputs: query (required), language, limit.
search_mdnC
Search MDN Web Docs for web development documentation
Inputs: query (required).
search_npmC
Search npm registry for JavaScript packages
Inputs: query (required), limit.
search_pypiB
Search PyPI for Python packages
Inputs: query (required).
search_stackoverflowC
Search Stack Overflow for programming questions and answers
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose targeting a specific platform or resource, with no overlap in functionality. The descriptions explicitly differentiate the search targets (e.g., GitHub repositories, MDN documentation, npm packages), making it easy for an agent to select the appropriate tool without confusion.
All tool names follow a consistent verb_noun pattern with 'search_' as the prefix, followed by the platform name (e.g., search_github, search_mdn). This predictable naming scheme enhances readability and agent usability, with no deviations or mixed conventions.
With 6 tools, the server is well-scoped for its purpose of code research across multiple platforms. Each tool earns its place by covering a distinct and relevant source (e.g., GitHub, MDN, npm, PyPI, Stack Overflow), avoiding both thinness and bloat for this domain.
The tool surface is complete for the server's stated purpose of code research, covering major platforms developers commonly use (GitHub, MDN, npm, PyPI, Stack Overflow) and including a unified search_all tool. There are no obvious gaps in coverage that would cause agent failures for typical research tasks.
Maintenance
Related MCP Connectors
GitHub, npm, PyPI, Stack Overflow, arXiv and OpenAlex paper search as agent tools.
Find open-source libraries and fetch contextual code snippets by version to accelerate development…
Web data for agents: YouTube transcripts, screenshots, Google News, WHOIS, jobs, tech stack, more.
Web search and page reading for AI agents, including JSON APIs, RSS feeds and YouTube.
Related MCP Servers
- AlicenseCqualityDmaintenanceProvides real-time access to up-to-date library documentation and code examples for any programming library. Helps AI coding assistants deliver accurate, current information instead of relying on outdated training data.115 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables searching and fetching documentation pages from a wide range of programming languages, frameworks, game engines, and tools. Supports multiple sources and returns relevant documentation snippets.1-
- FlicenseNot gradedqualityDmaintenanceProvides LLMs with tools to search Stack Overflow for programming solutions, helping ground responses in real-world code examples.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to run local multi-engine web searches, fetch pages through anti-bot fallback chains, and query site-specific sources such as GitHub, npm, PyPI, Docker Hub, and Twitter/X for structured results.3MIT