Deep Research MCP Server enables AI-powered, iterative web research with PostgreSQL integration for knowledge persistence
The Deep Research MCP Server is an advanced research assistant designed to perform iterative, deep research on any topic by combining search engines, web scraping, and Gemini large language models. It offers seamless integration with various Model Context Protocol (MCP) clients, enabling these applications to connect to specific data sources and tools through a standardized protocol. Built in Node.js and TypeScript, this server leverages the power of Gemini API for generating intelligent queries and Firecrawl API for web search and content extraction.
The Deep Research MCP Server boasts several key features that make it an invaluable tool for AI applications:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Service/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
The architecture of the Deep Research MCP Server is designed to be scalable and efficient, leveraging standard protocols for seamless integration with various AI clients. The server runs on a Node.js backend environment and utilizes TypeScript for robust type safety.
graph TD
A[AI Application] --> B[MCP Client]
B --> C[MCP Server]
C --> D[PostgreSQL Database]
D --> E[Research Data]
style A fill:#e1f5fe
style B fill:#c9bde2
style C fill:#f3e5f5
style D fill:#e8f5e8
style E fill:#d4eef7
Clone the Repository:
git clone https://github.com/ssdea/deep-research-mcp.git
cd deep-research-mcp
Install Dependencies:
npm install
Set Up Environment Variables:
Create a .env.local
file and set the following variables:
GEMINI_API_KEY="your_gemini_key"
FIRECRAWL_KEY="your_firecrawl_key"
# Optional: If you want to use your self-hosted Firecrawl
# FIRECRAWL_BASE_URL="http://localhost:3002"
DATABASE_URL="postgresql://username:password@localhost:5432/db" # 🐘 PostgreSQL connection string
Build the Project:
npm run build
Run the Server:
Start the MCP server with:
node --env-file .env.local dist/mcp-server.js
Test Database Connection:
Ensure your PostgreSQL setup is working correctly by running:
node src/db.ts
A startup uses the Deep Research MCP Server to investigate market trends and customer needs before launching a new product. The server iteratively searches and gathers data, using Gemini API LLMs for smart follow-up questions and ensuring comprehensive coverage.
Law firms employ the tool to conduct thorough legal research on complex cases. By setting up specific parameters for depth and breadth, attorneys can leverage previous findings while diving deep into specific aspects of a case.
The Deep Research MCP Server supports integration with several MCP clients:
graph TD
ClaudeDesktop[Claude Desktop] -->|✅| ResourceAccess
Continue[Continue] -->|✅| ToolUsage
Cursor[Cursor] -->|❌| FeatureIncompatibilities
The Deep Research MCP Server is optimized for efficiency and compatibility across multiple platforms:
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Ensure your server environment is secure by properly managing credentials and implementing best practices for data handling.
Q: How does the Deep Research MCP Server integrate with different MCP clients?
Q: Can I use this server for legal research purposes?
Q: Are there any specific security measures implemented in the server setup?
Q: How do I test my connection to the PostgreSQL database?
node src/db.ts
command to verify that the database is correctly configured and accessible.Q: What are the main benefits of using the Deep Research MCP Server for AI applications?
Contributions to this project are welcome. If you're interested in contributing, please follow these guidelines:
Explore the Model Context Protocol (MCP) ecosystem for more tools, libraries, and resources:
By utilizing the Deep Research MCP Server, developers can significantly enhance their AI applications with robust research capabilities and seamless integration.
This comprehensive documentation positions the Deep Research MCP Server as a powerful tool for AI workflows, emphasizing its compatibility, features, and potential use cases in various industries.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods