Supports containerized deployment of the Presearch MCP server with Docker and Docker Compose configurations for easy orchestration.
Uses environment variable configuration for managing API keys, cache settings, and server configuration.
Includes ESLint for code quality and linting during development.
Version control system used for managing the project repository.
Hosts the project repository, issue tracking, and community discussions.
Supports Markdown as an export format for search results and scraped content.
Built on Node.js runtime (requires v20.0.0 or higher) for server execution.
Uses npm for package management and dependency installation.
Includes Prettier for code formatting during development.
Provides Redis-compatible intelligent caching with configurable TTL and key limits for improved performance.
Uses Shields.io badges in documentation for displaying project status and metadata.
š Presearch MCP Server
Privacy-first search integration for AI assistants - A professional Model Context Protocol (MCP) server that seamlessly integrates Presearch's decentralized search API with AI applications.
š Overview
Presearch MCP Server provides a robust, privacy-focused bridge between AI assistants and the Presearch decentralized search engine. Built with enterprise-grade architecture, it offers intelligent caching, multi-format exports, and comprehensive web scraping capabilities while maintaining user privacy and data security.
š Quick Links
Repository: GitHub
Smithery: Smithery.ai
Presearch API: Developer Portal
Issues: Support
⨠Key Features
š”ļø Privacy & Security
Decentralized Search: Leverages Presearch's distributed network for private, uncensored search results
No Tracking: Zero user data collection or behavioral tracking
Secure Authentication: Bearer token authentication with configurable API endpoints
š§ AI Integration
MCP Protocol Compliance: Full Model Context Protocol implementation for seamless AI assistant integration
Dual Transport Support: Both HTTP and STDIO transport modes
Smithery.ai Ready: Pre-configured for instant deployment on Smithery platform
š Performance & Reliability
Intelligent Caching: Redis-compatible caching with configurable TTL and key limits
Rate Limiting: Built-in request throttling and retry mechanisms
Error Handling: Comprehensive error handling with detailed logging
Health Monitoring: Built-in health checks and performance metrics
š Data Export & Analysis
Multi-Format Support: JSON, CSV, Markdown, HTML, and PDF export formats
Content Scraping: Intelligent web content extraction with metadata preservation
Batch Processing: Bulk search and scraping operations
Quality Scoring: Advanced result ranking and quality assessment
š Quick Start
Prerequisites
Node.js ā„20.0.0
Presearch API key (Get yours here)
Docker (optional, for containerized deployment)
Installation
Configuration
Edit .env file with your settings:
Start the Server
HTTP Mode (for remote connections):
STDIO Mode (for local AI assistants):
Development Mode (with auto-reload):
Docker Mode (for containerized deployment):
š MCP Configuration
HTTP Transport Configuration
Add to your MCP client configuration:
STDIO Transport Configuration
š ļø Available Tools
Search Operations
presearch_ai_search- Perform intelligent web searches with advanced filteringpresearch_search_and_scrape- Search and automatically scrape top resultsexport_search_results- Export search results in multiple formats
Content Extraction
scrape_url_content- Extract content from specified URLsexport_site_content- Export scraped content with formattingcontent_analysis- Analyze content quality and relevance
System Management
presearch_health_check- Verify API connectivity and authenticationcache_stats- View cache performance metricscache_clear- Clear cached data
š Usage Examples
Basic Search
Advanced Search with Scraping
Content Scraping
Exporting Search Results
š Presearch API Authentication
Obtaining API Keys
Create a developer account
Generate your API key (Bearer token)
Add to your
.envfile:PRESEARCH_API_KEY=your_key_here
Authentication Headers
The server automatically handles authentication using the Authorization: Bearer <token> header format as specified in the Presearch API documentation.
API Endpoints
Base URL:
https://na-us-1.presearch.com/v1/searchAuthentication: Bearer token in Authorization header
Rate Limits: Configurable per your Presearch plan
š³ Docker Deployment
Quick Docker Setup
Docker Compose
š§ Development
Project Structure
Available Scripts
npm start- Start HTTP servernpm run start:stdio- Start STDIO servernpm run dev- Development mode with auto-reloadnpm run lint- Run ESLintnpm run format- Format code with Prettier
Testing
š Performance & Monitoring
Cache Metrics
Hit/miss ratios
Response time tracking
Memory usage monitoring
Health Checks
API connectivity verification
Authentication validation
System resource monitoring
š Security Features
Data Protection
No user data persistence
Encrypted API communications
Secure token handling
Rate Limiting
Configurable request limits
Automatic retry mechanisms
DDoS protection
š License
MIT License - see LICENSE file for details.
š¤ Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests
Submit a pull request
š Support
Issues: GitHub Issues
Documentation: Wiki
Discussions: GitHub Discussions
š Star History
Built with ā¤ļø for the privacy-conscious AI community
This server cannot be installed