Perplexity MCP Server
OfficialThe official MCP server implementation for Perplexity API Platform. Provides real-time web search, deep research, and advanced reasoning capabilities through Sonar AI models and the Search API.
Perplexity MCP Server
The Perplexity MCP Server is the official Model Context Protocol (MCP) implementation for the Perplexity API Platform. It provides AI assistants with real-time web search, deep research, and advanced reasoning capabilities through Perplexity's powerful Sonar AI models and Search API.
Why Use Perplexity MCP Server?
Perplexity MCP Server bridges the gap between AI assistants and the live web, enabling:
- Real-time information access: Search the web for current events, news, and up-to-date documentation
- Grounded responses: Get answers backed by actual web sources with citations
- Deep research capabilities: Conduct thorough investigations with comprehensive analysis
- Advanced reasoning: Solve complex problems with step-by-step logical analysis
Available Tools
The server exposes four powerful tools backed by Perplexity's Sonar AI models:
1. perplexity_search
Direct web search using the Perplexity Search API. Returns ranked search results with titles, URLs, snippets, and metadata.
Best for: Finding current information, news, facts, documentation, or specific web content.
2. perplexity_ask
General-purpose conversational AI with real-time web search using the sonar-pro model (200k context window).
Best for: Quick questions, everyday searches, and conversational queries requiring current information.
3. perplexity_research
Deep, comprehensive research using the sonar-deep-research model. Provides thorough analysis with full citations.
Best for: Complex topics requiring detailed investigation, academic research, and in-depth analysis.
4. perplexity_reason
Advanced reasoning and problem-solving using the sonar-reasoning-pro model with chain-of-thought processing.
Best for: Logical problems, complex analysis, decision-making, and tasks requiring step-by-step reasoning.
Tip: Use the strip_thinking parameter to remove <think>...</think> tags and conserve context tokens.
Installation
One-Click Installation
Perplexity MCP Server offers one-click installers for popular MCP clients:
- Cursor: Automatic configuration available
- VS Code: Direct installation support
- Claude Desktop: JSON configuration import
Claude Code Installation (Recommended)
# Set your API key
export PERPLEXITY_API_KEY="your_key_here"
# Launch Claude Code
claude
# Install via plugin marketplace
/plugin marketplace add perplexityai/modelcontextprotocol
/plugin install perplexity
NPX Installation
For any MCP-compatible client, add this to your configuration:
{
"mcpServers": {
"perplexity": {
"type": "stdio",
"command": "npx",
"args": ["-y", "perplexity-mcp"],
"env": {
"PERPLEXITY_API_KEY": "your_key_here"
}
}
}
}
Docker Deployment
For production or isolated environments:
docker build -t perplexity-mcp-server .
docker run -p 8080:8080 -e PERPLEXITY_API_KEY=your_key_here perplexity-mcp-server
Server endpoint: http://localhost:8080/mcp
Configuration
Required Environment Variables
| Variable | Description | Required |
|----------|-------------|----------|
| PERPLEXITY_API_KEY | Your Perplexity API key | Yes |
Optional Environment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| PERPLEXITY_TIMEOUT_MS | Request timeout in milliseconds | 600000 (10 min) |
| PERPLEXITY_PROXY | Proxy URL for corporate networks | None |
| PORT | HTTP server port | 8080 |
| BIND_ADDRESS | Server bind address | 127.0.0.1 |
| ALLOWED_ORIGINS | CORS allowed origins | None |
Getting Your API Key
- Visit the Perplexity API Portal
- Sign in or create an account
- Navigate to API Keys section
- Generate a new API key
- Copy and store securely
Use Cases
Research and Documentation
Search for the latest React 19 features and migration guide
Real-Time Information
What are the current cryptocurrency prices for Bitcoin and Ethereum?
Technical Problem-Solving
Analyze the trade-offs between using MongoDB vs PostgreSQL for a social media application with 1 million users
Code Research
Research best practices for implementing WebSocket connections in Next.js 15
Technical Details
- Repository: github.com/perplexityai/modelcontextprotocol
- Language: TypeScript (92.6%)
- License: MIT
- Stars: 1.8k+
- Transport: stdio, HTTP/SSE
Best Practices
Choosing the Right Tool
Use perplexity_search when:
- You need current information (news, stock prices, weather)
- You want ranked search results with URLs
- You need to verify facts with sources
- You're looking for specific documentation or resources
Use perplexity_ask when:
- You need quick answers to everyday questions
- You want conversational responses with context
- The query benefits from AI interpretation
- You need general information synthesis
Use perplexity_research when:
- Conducting comprehensive analysis of complex topics
- You need detailed citations and sources
- Research requires thorough investigation
- Building technical documentation or reports
Use perplexity_reason when:
- Making architectural or technical decisions
- Analyzing trade-offs between solutions
- Solving complex logical problems
- Need step-by-step problem-solving
Optimization Tips
- Context Tokens: Use
strip_thinking: truewithperplexity_reasonto reduce token usage - Timeout Settings: Increase
PERPLEXITY_TIMEOUT_MSto 900000 (15 min) for deep research queries - Rate Limiting: Implement retry logic for API rate limits
- Caching: Cache frequent queries locally to reduce API costs
- Query Refinement: Be specific in prompts for better results
Integration Patterns
For Development Workflows:
"Search for the latest security best practices for React authentication in 2025"
For Research Tasks:
"Research the performance implications of using WebSockets vs Server-Sent Events for real-time data"
For Code Documentation:
"Find current documentation for TypeScript 5.5 utility types and provide examples"
For Decision Making:
"Analyze whether I should use PostgreSQL or MongoDB for a multi-tenant SaaS application"
Integration with MCP Clients
Roo Code Integration
Perplexity MCP Server works seamlessly with Roo Code's custom modes:
- Create a Research Mode in Roo Code settings
- Assign Perplexity to the mode's available tools
- Use
@perplexityin conversations to trigger research - Combine with code editing for research-driven development
Claude Desktop Integration
{
"mcpServers": {
"perplexity": {
"type": "stdio",
"command": "npx",
"args": ["-y", "perplexity-mcp"],
"env": {
"PERPLEXITY_API_KEY": "pplx-xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}
Save to claude_desktop_config.json and restart Claude Desktop.
VS Code with Cline/Continue
Add to your MCP configuration:
{
"mcpServers": {
"perplexity": {
"command": "npx",
"args": ["-y", "perplexity-mcp"],
"env": {
"PERPLEXITY_API_KEY": "your_api_key_here"
}
}
}
}
Performance Considerations
Response Times
- perplexity_search: 1-3 seconds (fast)
- perplexity_ask: 3-8 seconds (moderate)
- perplexity_research: 2-5 minutes (comprehensive)
- perplexity_reason: 10-30 seconds (with thinking), 5-10 seconds (stripped)
Cost Optimization
- Use search first for simple lookups (lower cost)
- Reserve deep research for complex topics (higher cost)
- Cache results when possible to avoid duplicate queries
- Use reasoning selectively for important decisions
- Monitor API usage through Perplexity dashboard
API Limits
- Free Tier: Limited requests per month
- Standard: 5,000 requests/month
- Pro: 20,000+ requests/month
- Enterprise: Custom limits
Check current limits at Perplexity API Portal.
Comparison with Other Search Tools
| Feature | Perplexity MCP | Google Search API | Bing Search API | |---------|----------------|-------------------|-----------------| | AI-Powered | ✅ Yes | ❌ No | ⚠️ Limited | | Real-Time Web | ✅ Yes | ✅ Yes | ✅ Yes | | Deep Research | ✅ Yes | ❌ No | ❌ No | | Reasoning | ✅ Advanced | ❌ No | ❌ No | | Citations | ✅ Full | ⚠️ Links only | ⚠️ Links only | | MCP Native | ✅ Yes | ❌ No | ❌ No | | Cost | $$ | $$ | $$ |
Frequently Asked Questions
Can I use Perplexity MCP Server without a paid API key?
No, you need a Perplexity API key which requires a paid subscription. Visit https://www.perplexity.ai/account/api to sign up.
Does it work with local LLMs?
Yes! The MCP server acts as a tool that any MCP-compatible client can use, regardless of which LLM powers the client (OpenAI, Anthropic, local models like Ollama, etc.).
What's the difference between perplexity_ask and perplexity_search?
- perplexity_search: Returns raw search results (titles, URLs, snippets) - you get the data to analyze yourself
- perplexity_ask: Uses AI to synthesize an answer from search results - you get a conversational response with citations
Can I use it in production applications?
Yes, the Perplexity MCP Server can be deployed in production. Use Docker for containerization and set BIND_ADDRESS=0.0.0.0 for public hosting. Ensure proper API key management and rate limiting.
How do I reduce costs?
- Use
perplexity_searchfor simple lookups (cheaper) - Enable
strip_thinking: truefor reasoning queries - Cache frequent queries
- Use appropriate timeouts to avoid long-running queries
- Monitor usage in Perplexity dashboard
Is my search data private?
Search queries are sent to Perplexity's API. Review Perplexity's Privacy Policy for details on data handling.
Can I self-host the MCP server?
Yes! The server is open-source. Clone the GitHub repository, build from source, and run locally. You still need a Perplexity API key for the backend.
What models power the different tools?
- perplexity_search: Direct Search API (no model)
- perplexity_ask: sonar-pro (200k context)
- perplexity_research: sonar-deep-research
- perplexity_reason: sonar-reasoning-pro
Advanced Configuration
Corporate Proxy Support
For enterprise environments:
export PERPLEXITY_PROXY="https://username:[email protected]:8080"
export PERPLEXITY_TIMEOUT_MS=900000
Custom Port for HTTP Deployment
docker run -p 3000:3000 \
-e PORT=3000 \
-e PERPLEXITY_API_KEY=your_key \
-e BIND_ADDRESS=0.0.0.0 \
perplexity-mcp-server
Multiple Instances
Run multiple server instances for different purposes:
{
"mcpServers": {
"perplexity-research": {
"command": "npx",
"args": ["-y", "perplexity-mcp"],
"env": {
"PERPLEXITY_API_KEY": "key_for_research",
"PERPLEXITY_TIMEOUT_MS": "900000"
}
},
"perplexity-quick": {
"command": "npx",
"args": ["-y", "perplexity-mcp"],
"env": {
"PERPLEXITY_API_KEY": "key_for_quick_search",
"PERPLEXITY_TIMEOUT_MS": "30000"
}
}
}
}
Real-World Use Cases
Software Development
Staying Current with Technology:
"Search for breaking changes in Next.js 15 that affect App Router"
API Research:
"Research the latest Stripe API features for subscription management released in 2025"
Debugging Assistance:
"Search for solutions to CORS errors in Express.js with credentials"
Technical Writing
Fact Verification:
"Verify the current system requirements for running Docker Desktop on Windows 11"
Industry Trends:
"Research the adoption rate of TypeScript vs JavaScript in 2025"
Product Management
Competitive Analysis:
"Research the latest features announced by Vercel and Netlify for edge computing"
Market Research:
"Analyze current trends in AI coding assistants and developer tools"
DevOps & Infrastructure
Best Practices:
"Research current best practices for Kubernetes security in production"
Tool Comparison:
"Compare Terraform vs Pulumi for infrastructure as code in 2025"
Resources
Use Perplexity MCP Server MCP Server with
5ire
Open source cross-platform desktop AI assistant with native MCP server support for enhanced tool integration.
Claude.ai
Anthropic's official web client with MCP server integration for enhanced AI assistant capabilities and tool connectivity.
Claude Desktop App
Official Claude desktop application with built-in MCP support and comprehensive server management capabilities
Cline
Advanced agentic coding VS Code extension that leverages MCP servers for powerful development tools and automation
Continue
Open-source development copilot for VS Code and JetBrains IDEs with comprehensive MCP integrations and extensible architecture
Cursor
Advanced AI-powered IDE with comprehensive MCP support for tools and resources, designed for modern development workflows
Daydreams Agents
Innovative agentic platform with Model Context Protocol support for building and deploying autonomous AI agents
Emacs MCP
Community-driven Emacs integration packages for Model Context Protocol support and tool integration
fast-agent
Ultra-lightweight agent framework with Model Context Protocol support designed for high-performance AI agent deployment
FLUJO
Open-source MCP Hub and Inspector with multi-model workflow orchestration and intuitive chat interface
AgentAI
Rust library for simplified AI agent creation with built-in MCP integration and high-performance async capabilities.
Genkit
Google's powerful Genkit framework with comprehensive MCP support for building AI-powered applications and workflows
Glama
Comprehensive MCP directory, client listings, and community hub for discovering and sharing MCP resources
GenAIScript
Microsoft's powerful scripting framework with comprehensive MCP client integration for AI-powered automation and scripting
Goose
Open-source development agent with comprehensive MCP integration and intelligent IDE automation capabilities
gptme
Versatile terminal and chat client with comprehensive MCP support for both local and hosted AI models
HyperAgent
Playwright-powered autonomous web agent with comprehensive MCP tools integration for automated web interactions
JetBrains AI Assistant
JetBrains AI Assistant with full MCP client and server support. Connect to external MCP servers for enhanced AI capabilities, or expose 25+ IDE tools to external clients like Claude Desktop and Cursor.
Klavis AI
Open-source MCP integration platform that connects AI agents to 100+ tools (GitHub, Slack, Notion, etc.) with enterprise-grade OAuth and intelligent context management. YC-backed, SOC 2 compliant.
LibreChat
Self-hosted, open-source ChatGPT-style UI with comprehensive MCP support, multi-model AI integration (OpenAI, Anthropic, Google, AWS), agents, code interpreter, and enterprise features. Fully customizable and privacy-focused.
Lutra AI
First MCP-compatible client built for everyone. AI task agent that connects all your work apps, turns conversations into automated workflows, and integrates with MCP servers seamlessly. No-code automation platform.
AgenticFlow
No-code platform for building intelligent agents that connect thousands of APIs and tools via Model Context Protocol integration
mcp-agent
Simple, composable Python framework to build production-ready AI agents using MCP. Pairs Anthropic Building Effective Agents patterns with MCP runtime, supports multiple LLM providers, and includes Temporal-based orchestration for workflows.
mcp-use
Open-source library to connect any LLM to any MCP server in 6 lines of code. Language-agnostic protocol supporting Python and TypeScript with LangChain.js compatibility, HTTP/SSE transport, and everything needed to build with MCP servers/clients and AI agents.
MCPHub (mcp.nvim)
Neovim plugin to manage and use MCP servers within the editor. Features intuitive UI for managing server states, marketplace integration for exploring MCP servers, interactive testing, and integration with Avante.nvim, CodeCompanion.nvim, and CopilotChat.nvim.
MCPOmni-Connect
Versatile CLI client for MCP with agentic and orchestrator capabilities. Supports chat mode, autonomous agents, planner-based orchestration, treats each MCP server as tool agent, multi-agent workflows, and can be embedded in FastAPI or backend systems.
Memex
All-in-one desktop app and server builder with prompt-to-MCP server capabilities. Build custom MCP servers from natural language, integrate them instantly, and use them to solve problems—all within a single conversation.
MindPal
No-code platform for AI agents and workflows with comprehensive MCP support. Build custom AI agents trained on your data, create multi-agent workflows, and connect to 1,000+ business tools—all without writing code.
MooPoint
Web-based, model-agnostic AI chat platform with comprehensive MCP server integration, tool calling capabilities, and OAuth support. Connect to any LLM provider while maintaining control over your API keys and data.
Msty Studio
Privacy-first AI workspace integrating local and online LLMs with comprehensive MCP toolbox. Run models entirely offline or use cloud providers while maintaining complete control over your data and workflows.
NVIDIA Agent Intelligence Toolkit
Enterprise-grade toolkit for building AI agents with MCP client/server support. Works with LangChain, LlamaIndex, CrewAI, and Semantic Kernel. Includes observability, profiling, and hyperparameter tuning. Part of NVIDIA NeMo family.
Amazon Q CLI
Amazon's AI-powered coding assistant for terminals with comprehensive MCP server support and AWS integration
OpenSumi
AI-native IDE framework for building custom development environments with MCP client support. Powers CodeFuse IDE and CodeBlitz. VSCode plugin compatible, customizable UI, supports containers, Electron, and pure frontend deployments. By Alibaba & Ant Group.
oterm
A text-based terminal client for Ollama that supports the Model Context Protocol (MCP), allowing interaction with external tools and data sources directly from the CLI.
Postman
The world's leading API platform now includes a native MCP client for testing, debugging, and interacting with MCP servers in a visual environment.
Roo Code
Open-source AI-powered agentic coding assistant for VS Code with comprehensive MCP server support, multi-file editing, custom modes, and advanced orchestration features. Free to use with any AI model.
Slack MCP Client
An open-source TypeScript client that bridges Slack with the Model Context Protocol, enabling users to interact with MCP tools directly within Slack channels and DMs.
Sourcegraph Cody
An advanced AI coding assistant that leverages the Model Context Protocol (via OpenCtx) to fetch context from external sources like issue trackers, databases, and documentation.
SpinAI
A lightweight, observable TypeScript agent framework designed for building production-grade AI agents that can easily consume Model Context Protocol (MCP) tools.
Superinterface
A comprehensive developer platform and infrastructure for building in-app AI assistants that natively supports the Model Context Protocol (MCP) for tool integration.
Superjoin
An AI Assistant for Google Sheets that functions as an MCP Client, allowing users to import data from external sources and automate spreadsheet workflows using natural language.
Theia AI
An open and flexible platform for building AI-enhanced tools and IDEs, featuring deep integration with the Model Context Protocol to provide rich context to AI agents.
Apify MCP Tester
Standalone SSE/HTTP client for comprehensive MCP server testing with intuitive chat-like user interface
Theia IDE
The open-source IDE that serves as the reference implementation for Theia AI, offering out-of-the-box support for the Model Context Protocol (MCP).
Tome
A sleek macOS desktop client by Runebook that simplifies the management of local LLMs and Model Context Protocol (MCP) servers for non-technical users.
TypingMind
A versatile web and desktop frontend for LLMs that supports the Model Context Protocol via a local bridge connector, allowing web-based agents to access local tools.
Warp
A modern, Rust-based terminal that integrates with Claude Code and the Model Context Protocol to bring AI agent capabilities directly into your command-line workflow.
WhatsMCP
Connect your personal AI stack and MCP servers directly to WhatsApp. Manage tools, agents, and workflows through a familiar chat interface.
Windsurf Editor
The first agentic IDE, powered by Codeium. Features deep context awareness and native MCP support to connect to your external tools and data.
Witsy
A powerful desktop AI assistant for macOS and Windows. Supports local LLMs (Ollama) and cloud providers (OpenAI, Anthropic), with a native plugin system built on MCP.
Zed
A high-performance, multiplayer code editor from the creators of Atom. Features built-in MCP support to connect AI assistants to your codebase and external tools.
Zencoder
An AI coding agent and IDE that integrates with your entire software development lifecycle. Features a built-in MCP library for one-click tool installation.
Augment Code
Agentic code assistant that orchestrates MCP servers for repository-level tasks with intelligent automation
Raycast MCP Extension
A Raycast extension that bridges the Model Context Protocol with Raycast AI. Access your MCP tools directly from the Raycast launcher and Quick AI.
LM Studio
A desktop application for discovering, downloading, and running local LLMs. Version 0.3.17+ includes native support for MCP, allowing local models to use tools.
Perplexity
Native macOS integration enabling Perplexity to connect with local apps and data (Notes, Calendar, Files) via the Model Context Protocol using the PerplexityXPC helper.
ChatMCP
An open-source, feature-rich desktop chat client built with Flutter that implements the Model Context Protocol, featuring an integrated MCP server marketplace and multi-LLM support.
MCP Inspector
The official web-based debugging tool for Model Context Protocol servers, allowing developers to test tools, resources, and prompts interactively.
mcphub.nvim
Neovim plugin to manage, test, and use MCP servers within the editor. Integrates seamlessly with AI chat plugins like Avante.nvim, CodeCompanion.nvim, and CopilotChat.nvim.
Bolt.new
AI-powered full-stack development platform that creates stunning apps and websites through conversational AI, with native MCP server integration for extensible capabilities.
Rovo Dev CLI
An AI agent built by Atlassian for software developers, bringing AI-assisted development directly to the command line interface.
Toolprint
Build AI Agents that use tools 10x Better. A single SDK with powerful capabilities to teach and improve tool selection to achieve workflow goals.
Microsoft Copilot Studio
Low-code platform for building custom AI copilots and agents with MCP integration. Connect existing knowledge servers and data sources directly within Copilot Studio to extend agent capabilities.
BeeAI Framework
Open-source framework with comprehensive MCP support for building sophisticated AI workflows and automations
GitHub Copilot (VS Code)
AI-powered code completion and chat in Visual Studio Code with native Model Context Protocol support. Access external tools and data sources through MCP to enhance code generation and assistance.
Amp
Frontier coding agent for terminal and editor with multi-model support (Claude, GPT-5), native MCP integration, thread-based conversations, and extensions for VS Code, Cursor, JetBrains, and Neovim.
OpenCode
Open-source AI coding agent for the terminal with native MCP support, Plan/Build modes, undo/redo capabilities, and conversation sharing. Supports multiple LLM providers.
BoltAI
Native macOS desktop AI application with comprehensive MCP integrations for both local and cloud-based AI models
Claude Code
Anthropic's official AI coding assistant CLI and terminal application with comprehensive MCP support and development tools
Related Servers
Vantage
Interact with your organization's cloud cost spend.
VariFlight
VariFlight's official MCP server provides tools to query flight information, weather data, comfort metrics, the lowest available fares, and other civil aviation-related data.
VCAgents
Interact with investor agents—think Wilson or Thiel—continuously updated with market intel.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Verbwire
Deploy smart contracts, mint NFTs, manage IPFS storage, and more through the Verbwire API
Vercel
Access logs, search docs, and manage projects and deployments.
Algolia Inc
“I can't code” is no longer an excuse. The technical barrier is gone. What will you create first?