
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
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.json
C:\Users\your-username\.cursor\mcp.json
If 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.json
To 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".
FAQs
MCP integration for Perplexity AI web searches
We found that perplexity-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.