The Perplexity MCP Server provides AI-powered research capabilities through browser automation of Perplexity's web interface, offering intelligent web research, persistent conversations, and developer tooling without API key requirements.
Key Capabilities:
Intelligent Web Research: Perform deep searches and get detailed summaries on any topic without API limitations
Persistent Conversations: Maintain context across multi-turn interactions with local SQLite chat storage
Content Extraction: Parse clean article text from URLs, handle dynamic JavaScript pages, and automatically parse GitHub repositories
Developer Tooling: Retrieve technical documentation, discover and compare APIs, and analyze code for deprecated patterns
Enhanced Privacy: All processing and conversation history handled locally for greater data privacy
Available Tools:
search
: Configurable research queriesget_documentation
: Technical documentation with examplesfind_apis
: API discovery for development needscheck_deprecated_code
: Code analysis for technical debtextract_url_content
: Web content parsing with GitHub integrationchat_perplexity
: Context-aware persistent conversations
Technical Advantages: Keyless operation, cost-free usage, local data processing, and SQLite-based history storage.
Provides AI-powered research capabilities through Perplexity's infrastructure without using any API key. Enables web searches, documentation retrieval, API discovery, code analysis, and persistent chat functionality using Perplexity AI.
Offers TypeScript-first implementation as a core feature of the MCP server.
Perplexity MCP Zerver 📋
A research level Model Context Protocol (MCP) server implementation providing AI-powered research capabilities by interacting with the Perplexity website without requiring an API key.
Features
- 🔍 Web search integration via Perplexity's web interface.
- 💬 Persistent chat history for conversational context.
- 📄 Tools for documentation retrieval, API finding, and code analysis.
- 🚫 No API Key required (relies on web interaction).
- 🛠️ TypeScript-first implementation.
- 🌐 Uses Puppeteer for browser automation.
Tools
1. Search (search
)
Performs a search query on Perplexity.ai. Supports brief
, normal
, or detailed
responses. Returns raw text output.
2. Get Documentation (get_documentation
)
Asks Perplexity to provide documentation and examples for a technology/library, optionally focusing on specific context. Returns raw text output.
3. Find APIs (find_apis
)
Asks Perplexity to find and evaluate APIs based on requirements and context. Returns raw text output.
4. Check Deprecated Code (check_deprecated_code
)
Asks Perplexity to analyze a code snippet for deprecated features within a specific technology context. Returns raw text output.
5. Extract URL Content (extract_url_content
)
Extracts main article text content from URLs using browser automation and Mozilla's Readability. Handles GitHub repositories via gitingest.com. Supports recursive link exploration up to depth. Returns structured JSON with content and metadata.
6. Chat (chat_perplexity
)
Maintains ongoing conversations with Perplexity AI. Stores chat history locally in chat_history.db
within the project directory. Returns a stringified JSON object containing chat_id
and response
.
Installation
just copy 📋 and paste the readme and let the AI take care of the rest
- Clone or download this repository:
- Install dependencies:
- Build the server:
Important: Ensure you have Node.js installed. Puppeteer will download a compatible browser version if needed during installation. Restart your IDE/Application after building and configuring the project for changes to take effect.
Configuration
Add the server to your MCP configuration file (e.g., cline_mcp_settings.json
for the VS Code extension or claude_desktop_config.json
for the desktop app).
Important: Replace /path/to/perplexity-mcp-zerver/build/index.js
with the absolute path to the built index.js
file on your system.
Example for Cline/RooCode Extension:
Example for Claude Desktop:
Usage
- Ensure the server is configured correctly in your MCP settings file.
- Restart your IDE (like VS Code with the Cline/RooCode extension) or the Claude Desktop application.
- The MCP client should automatically connect to the server.
- You can now ask the connected AI assistant (like Claude) to use the tools, e.g.:
- "Use perplexity-server search to find the latest news on AI."
- "Ask perplexity-server get_documentation about React hooks."
- "Start a chat with perplexity-server about quantum computing."
Credits
Thanks DaInfernalCoder:
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details.
Disclaimer
This project interacts with the Perplexity website via web automation (Puppeteer). It is intended for educational and research purposes only. Web scraping and automation may be against the terms of service of the target website. The author does not endorse or encourage any unauthorized automation or violation of terms of service. Use responsibly and ethically. The stability of this server depends on the Perplexity website's structure remaining consistent.
local-only server
The server can only run on the client's local machine because it depends on local resources.
advance mcp server utilizing Perplexity, without the need for an API key
Related Resources
Related MCP Servers
- -securityAlicense-qualityMCP Server for the Perplexity API.Last updated -60MIT License
- AsecurityAlicenseAqualityAn MCP server integrating Perplexity AI's API to offer advanced search capabilities with support for multiple models and result configuration.Last updated -4271MIT License
- AsecurityFlicenseAqualityThis server provides access to the Perplexity AI API, enabling interaction through chatting, searching, and documentation retrieval within MCP-based systems.Last updated -2
- MIT License