Perplexity AI MCP Server
An MCP server integrating Perplexity AI's API to offer advanced search capabilities with support for multiple models and result configuration.
mkusaka
Tools
perplexity_search
Search using Perplexity AI's models with context-aware responses and citations
README
Perplexity AI MCP Server
An MCP server implementation that integrates Perplexity AI's API, providing advanced search capabilities with multiple model options.
Features
- Search using Perplexity AI's models
- Support for all official Sonar models
- Configurable result count
- Detailed error handling and logging
- MCP Inspector compatible
Available Models
- sonar-reasoning-pro (127k context)
- sonar-reasoning (127k context)
- sonar-pro (200k context)
- sonar (127k context)
Installation
pnpm install
pnpm build
Configuration
API Key
- Sign up for a Perplexity AI account
- Get your API key from the dashboard
- Set the environment variable:
export PERPLEXITY_API_KEY=your_api_key_here
Usage
Direct Execution
node dist/index.js
# or if you made it executable
./dist/index.js
Development
pnpm dev
Testing with MCP Inspector
pnpm inspect
Tool Reference
perplexity_search
Performs a search using Perplexity AI's models.
Parameters:
query
(string, required): The search querymodel
(string, optional): Model to use (default: "sonar")- Available options: sonar-reasoning-pro, sonar-reasoning, sonar-pro, sonar
count
(number, optional): Number of results (1-10, default: 5)
Development
Project Structure
src/perplexity/
├── index.ts # Main server implementation
├── lib/
│ └── logger.ts # Logging configuration
└── adr.md # Architectural decisions
Logging
Logs are written to perplexity-mcp.log
in the project root directory.
License
MIT
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
Recommended Servers

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
AIO-MCP Server
🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from
Persistent Knowledge Graph
An implementation of persistent memory for Claude using a local knowledge graph, allowing the AI to remember information about users across conversations with customizable storage location.
Hyperbrowser MCP Server
Welcome to Hyperbrowser, the Internet for AI. Hyperbrowser is the next-generation platform empowering AI agents and enabling effortless, scalable browser automation. Built specifically for AI developers, it eliminates the headaches of local infrastructure and performance bottlenecks, allowing you to
React MCP
react-mcp integrates with Claude Desktop, enabling the creation and modification of React apps based on user prompts

Any OpenAI Compatible API Integrations
Integrate Claude with Any OpenAI SDK Compatible Chat Completion API - OpenAI, Perplexity, Groq, xAI, PyroPrompts and more.
Exa MCP
A Model Context Protocol server that enables AI assistants like Claude to perform real-time web searches using the Exa AI Search API in a safe and controlled manner.
BigQuery
This is a server that lets your LLMs (like Claude) talk directly to your BigQuery data! Think of it as a friendly translator that sits between your AI assistant and your database, making sure they can chat securely and efficiently.