MCP Server Studio
Official Perplexity MCP server: real-time web search, answers and research with the Perplexity API.
Registry name: ai.perplexity/mcp-server
Add to claude_desktop_config.json:
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@perplexity-ai/mcp-server"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}Run in your terminal:
claude mcp add mcp-server -e PERPLEXITY_API_KEY='<PERPLEXITY_API_KEY>' -- npx -y @perplexity-ai/mcp-serverAdd to .cursor/mcp.json:
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@perplexity-ai/mcp-server"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@perplexity-ai/mcp-server"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"@perplexity-ai/mcp-server"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
PERPLEXITY_API_KEY | Yes | Perplexity API key |