Planned integration for searching internal documentation stored in Confluence.
Provides web search capabilities through DuckDuckGo, allowing users to search the web directly from Copilot Chat with rate-limited API calls and instant answer support.
Planned integration for connecting to custom search backends powered by Elasticsearch.
Planned integration for repository and issue search functionality through GitHub.
Planned integration for searching content within Notion workspaces.
Modular Search MCP Extension
A VS Code extension that provides enhanced web search capabilities with content extraction and AI-powered summarization through a Model Context Protocol (MCP) server, integrated with GitHub Copilot Chat.
Features
- 🔍 Enhanced Web Search: Advanced DuckDuckGo search with intelligent fallback results
- 🕷️ Content Extraction: Automatic web scraping using Cheerio and Mozilla Readability
- 🤖 AI Summarization: Intelligent content summaries with key points and keywords
- ⚡ Smart Performance: Configurable scraping limits (1-10 URLs) with rate limiting
- 🛠️ Modular Design: Extensible architecture for future search providers (Confluence ready)
- 📝 Rich Results: Detailed summaries with reading time, content type, and reference links
- ⚙️ Configurable: Full VS Code settings integration for all features
Installation
Quick Install (Recommended)
- Download or clone this repository:
- Install and build:
This will automatically build the extension, package it as a .vsix file, and install it in VS Code.
Manual Install
- Clone and build:
- Install the generated .vsix file:
- Open VS Code
- Go to Extensions view (Ctrl+Shift+X / Cmd+Shift+X)
- Click the "..." menu and select "Install from VSIX..."
- Select the generated
duckduckgo-search-mcp-0.1.0.vsix
file
Alternative Manual Install
You can also install via command line:
Usage
In Copilot Chat
Once installed, you can use the following commands in GitHub Copilot Chat:
"Search ddg for TypeScript tutorials"
"Find information about VS Code extensions"
"Web search React best practices"
Example Interactions
Configuration
Configure the extension through VS Code settings:
Available Settings
modularSearchMcp.duckduckgo.rateLimit
: Rate limit in milliseconds between requests (default: 1000)modularSearchMcp.maxResults
: Maximum number of search results (default: 10)modularSearchMcp.enableLogging
: Enable detailed logging for debugging (default: false)
Example settings.json
Testing
Test the MCP Server Standalone
You can test the MCP server independently:
This starts the server in stdio mode for testing with MCP clients.
Debug Mode
Enable debug logging:
Commands
The extension provides these VS Code commands:
Modular Search MCP: Restart Server
: Restart the MCP serverModular Search MCP: Show Status
: Display server status and configuration
How It Works
- Extension Activation: The extension automatically registers an MCP server with VS Code
- MCP Integration: The server is made available to Copilot Chat through MCP protocol
- Search Processing: When you request a search, the server:
- Validates the query
- Applies rate limiting
- Calls DuckDuckGo Instant Answer API
- Formats results for AI consumption
- Returns structured data to Copilot Chat
Architecture
Development
Project Structure
Building
Future Enhancements
The modular architecture supports easy addition of new search providers:
- Confluence: Internal documentation search (planned)
- Elasticsearch: Custom search backends
- GitHub: Repository and issue search
- Notion: Workspace search
Troubleshooting
MCP Server Not Registered
- Check VS Code settings for
mcp.servers
configuration - Restart VS Code
- Use command: "Modular Search MCP: Restart Server"
Search Not Working
- Enable logging:
"modularSearchMcp.enableLogging": true
- Check Output panel: "Modular Search MCP"
- Verify internet connection for DuckDuckGo API
- Check rate limiting settings
Extension Not Activating
- Ensure VS Code version >= 1.99.0
- Check extension is enabled in Extensions view
- Look for errors in Developer Console (Help → Toggle Developer Tools)
API Limitations
- DuckDuckGo: Public API with rate limiting, no authentication required
- Rate Limits: Configurable, default 1 request per second
- Results: Limited to instant answers and related topics
License
MIT License - see LICENSE file for details.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
Support
For issues and questions:
- Check the Issues page
- Enable logging and check VS Code Output panel
- Use "Show Status" command for configuration details
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A VS Code extension that integrates DuckDuckGo web search capabilities with GitHub Copilot Chat through a Model Context Protocol server.
Related MCP Servers
- -securityFlicense-qualityFacilitates real-time tool discovery and documentation retrieval for command-line tools within a VSCode extension, using Express and SSE for secure and dynamic content streaming.Last updated -7TypeScript
- -securityAlicense-qualityProvides web search functionality via DuckDuckGo for Claude Code and MCP-compatible clients, featuring advanced content exploration, navigation across search results, and detailed webpage analysis.Last updated -4PythonMIT License
- AsecurityAlicenseAqualityEnables AI agents and assistants like Goose or Claude to interact with VS Code through the Model Context Protocol.Last updated -761069TypeScriptApache 2.0
- AsecurityFlicenseAqualityA server that provides DuckDuckGo search capabilities (text, image, news, video search and AI chat) through the Model Context Protocol.Last updated -55Python