Overview
Perplexity MCP Server is a web search server that utilizes Perplexity's API to provide intelligent search capabilities with automatic model selection based on the user's query intent.
To use the server, clone the repository from GitHub, install the necessary dependencies, configure your Perplexity API key, and integrate it with the Claude Desktop App. After setup, you can ask Claude to perform searches using natural language queries.
- Automatic model selection based on query intent. - Support for multiple models tailored for different types of queries. - Domain and recency filtering for customized search results. - Easy integration with Claude Desktop App.
- Conducting in-depth research on various topics.
- Finding quick answers to general knowledge questions.
- Analyzing complex problems using advanced reasoning models.
- Customizing search results based on specific domains or time frames.
Add to your AI client
Use these steps to connect Perplexity MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"perplexity-mcp-rossh121": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perplexity-mcp-rossh121"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"perplexity-mcp-rossh121": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perplexity-mcp-rossh121"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"perplexity-mcp-rossh121": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perplexity-mcp-rossh121"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"perplexity-mcp-rossh121": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perplexity-mcp-rossh121"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"perplexity-mcp-rossh121": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perplexity-mcp-rossh121"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"perplexity-mcp-rossh121": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perplexity-mcp-rossh121"
]
}
}
}FAQ
How do I get a Perplexity API key?
You can obtain an API key by visiting <https://www.perplexity.ai/settings/api>.
Can I customize the search results?
Yes! You can use domain and recency filters to tailor your search experience.
What models are available for use?
The server supports several models including sonar-deep-research, sonar-reasoning-pro, and sonar for various search intents.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2247,"uuid":"247afdd0-a98b-4943-91a8-436e8c15bc4f","name":"perplexity-mcp","title":"Perplexity MCP Server","description":"A Perplexity MCP server based on","avatar_url":"https://avatars.githubusercontent.com/u/156230939?v=4","created_at":"2025-03-09T06:51:30.811Z","updated_at":"2025-03-12T10:20:53.523Z","status":"created","author_name":"RossH121","author_avatar_url":"https://avatars.githubusercontent.com/u/156230939?v=4","tags":"[]","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/RossH121/perplexity-mcp","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/faa55a0aecd841bc8ebb1c640e70e0bee0e9f667b76e60617c26c034d23c5a4b/68747470733a2f2f676c616d612e61692f6d63702f736572766572732f36716d766a6179397a352f6261646765","type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-12 20:01:29\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]