Perplexity AI MCP Server
Integrates with Perplexity AI's API to provide advanced search capabilities through the perplexity_search tool, supporting multiple Sonar models including sonar-reasoning-pro, sonar-reasoning, sonar-pro, and sonar
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Perplexity AI MCP Serversearch for latest developments in quantum computing with 3 results"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Perplexity MCP Server
Available Models
sonar-reasoning-pro (127k context)
sonar-reasoning (127k context)
sonar-pro (200k context)
sonar (127k context)
Installation
pnpm install
pnpm buildConfiguration
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_hereUsage
Direct Execution
node dist/index.js
# or if you made it executable
./dist/index.jsDevelopment
pnpm devTesting with MCP Inspector
pnpm inspectTool 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 decisionsLogging
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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Alicense-qualityCmaintenanceMCP Server for the Perplexity API.Last updated66MIT
- AlicenseAqualityCmaintenanceAn MCP server that enables Claude to perform web searches using Perplexity's API with intelligent model selection based on query intent and support for domain and recency filtering.Last updated64MIT
- AlicenseAqualityDmaintenanceAn unofficial MCP server for Perplexity AI that leverages Pro subscriptions and browser cookies to enable real-time web searches and model selection without an API key. It provides tools for performing queries, listing available models, and automating the login process to manage authentication.Last updated435MIT
- Alicense-qualityFmaintenanceAn MCP server that integrates with Poe's API to provide AI-powered search and research tools from Perplexity, Reka, Exa, and Linkup.Last updated468MIT
Related MCP Connectors
An MCP server that integrates with Discord to provide AI-powered features.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
MCP server for AI dialogue using various LLM models via AceDataCloud
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mkusaka/mcp-server-perplexity'
If you have feedback or need assistance with the MCP directory API, please join our Discord server