A Model Context Protocol (MCP) server that provides web search functionality using Perplexity AI's API.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"perplexity-mcp": {
"args": [
"-y",
"perplexity-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Model Context Protocol (MCP) server that provides web search functionality using Perplexity AI's API. Works with the Anthropic Claude desktop client.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'perplexity-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked perplexity-mcp against OSV.dev.
Click any tool to inspect its schema.
perplexity_search_webSearch the web using Perplexity AI with required query argument and optional recency argument to filter results by time period (day, week, month, year)
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in search / ai-ml
Persistent memory using a knowledge graph
Web and local search using Brave Search API
Production ready MCP server with real-time search, extract, map & crawl.
Multi-engine MCP server, CLI, and local daemon for agent web search and content retrieval — skill-guided workflows, no API keys.
MCP Security Weekly
Get CVE alerts and security updates for Perplexity Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol (MCP) server that provides web search functionality using Perplexity AI's API. Works with the Anthropic Claude desktop client.
Let's you use prompts like, "Search the web to find out what's new at Anthropic in the past week."
The server provides a single prompt:
The server implements one tool:
To install Perplexity MCP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install perplexity-mcp --client claude
If uv isn't installed.
# Using Homebrew on macOS
brew install uv
or
# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
The following environment variable is required in your claude_desktop_config.json. You can obtain an API key from Perplexity
PERPLEXITY_API_KEY: Your Perplexity AI API keyOptional environment variables:
PERPLEXITY_MODEL: The Perplexity model to use (defaults to "sonar" if not specified)
Available models:
sonar-deep-research: 128k context - Enhanced research capabilitiessonar-reasoning-pro: 128k context - Advanced reasoning with professional focussonar-reasoning: 128k context - Enhanced reasoning capabilitiessonar-pro: 200k context - Professional grade modelsonar: 128k context - Default modelr1-1776: 128k context - Alternative architectureAnd updated list of models is avaiable (here)[https://docs.perplexity.ai/guides/model-cards]
Add this tool as a mcp server by editing the Cursor/Claude config file.
"perplexity-mcp": {
"env": {
"PERPLEXITY_API_KEY": "XXXXXXXXXXXXXXXXXXXX",
"PERPLEXITY_MODEL": "sonar"
},
"command": "uvx",
"args": [
"perplexity-mcp"
]
}
/Users/your-username/.cursor/mcp.jsonC:\Users\your-username\.cursor\mcp.jsonIf everything is working correctly, you should now be able to call the tool from Cursor.
~/Library/Application\ Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.jsonTo verify the server is working. Open the Claude client and use a prompt like "search the web for news about openai in the past week". You should see an alert box open to confirm tool usage. Click "Allow for this chat".