Perplexity MCP Server
Provides tools for performing web searches using Perplexity AI, with control over recency, model, citations, images, and other parameters.
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 MCP Serverwhat are the latest breakthroughs in fusion energy?"
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.
What This Does
This MCP server connects AI assistants to Perplexity AI's search API. Ask questions in natural language and get grounded, cited answers from the live web — directly inside Claude or any MCP-compatible client.
One tool, full control: perplexity_search_web exposes the complete Perplexity API — recency filtering, model selection, temperature, top_k/top_p, citation/image toggles, and streaming.
Related MCP server: Perplexity Web Search MCP Server
Getting Started
1. Get a Perplexity API Key
Sign up at perplexity.ai and generate an API key from your account settings.
2. Install & Configure
Claude Code (Recommended)
claude mcp add perplexity -- npx -y @jschuller/perplexity-mcpThen set your API key:
export PERPLEXITY_API_KEY=pplx-your-key-hereClaude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"perplexity": {
"command": "npx",
"args": ["-y", "@jschuller/perplexity-mcp"],
"env": {
"PERPLEXITY_API_KEY": "pplx-your-key-here"
}
}
}
}Config location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
From Source
git clone https://github.com/jschuller/perplexity-mcp.git
cd perplexity-mcp
npm install && npm run build3. Verify
Ask Claude: "Search the web for the latest developments in quantum computing from the last week"
Tool Reference
perplexity_search_web
Parameter | Type | Default | Description |
| string | (required) | Search query |
|
|
| Filter results by time period |
| string |
| Perplexity model (model cards) |
| number | — | Randomness (0 = deterministic, 2 = creative) |
| integer | — | Maximum tokens to generate |
| integer | — | Limit high-probability token pool (0 = disable) |
| number | — | Nucleus sampling threshold |
| number | — | Penalize repeated tokens |
| number | — | Encourage topic variety |
| boolean |
| Include source citations |
| boolean |
| Include relevant images |
| boolean |
| Stream response incrementally |
Environment Variables
Variable | Required | Default | Description |
| Yes | — | Your Perplexity API key |
| No |
| Default model for all queries |
Available Models
sonar— Standard model (default)sonar-pro— Enhanced capabilitiesSee full list: Perplexity Model Cards
Security
API key stays in your local environment — never sent anywhere except the Perplexity API
The server communicates only with
api.perplexity.aiover HTTPSNo data is stored or logged beyond the API request lifecycle
See SECURITY.md for vulnerability reporting
Troubleshooting
Issue | Fix |
| Set the env var in your MCP client config or shell |
| Update to v2.1.0+ (fixes JSON Schema validation with Claude Code) |
Server not found | Verify |
Connection timeout | Check internet connectivity and Perplexity API status |
Contributing
Contributions welcome — see CONTRIBUTING.md.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/jschuller/perplexity-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server