Perplexity MCP Server
Overview
The Perplexity MCP Server is a Node.js application that implements the Model Context Protocol (MCP), allowing seamless interaction between Anthropic's Claude and Perplexity's AI capabilities.
To use the server, clone the repository from GitHub, install the necessary dependencies, configure your API key in an .env file, and build the project. You can then integrate it with Claude Desktop by adding the server configuration.
- perplexity_chat: An advanced chat completion tool with full message history support. - perplexity_ask: A simplified interface for quick single-query questions. - Secure API integration that enhances AI interactions with error handling and tool management.
- Implementing advanced chatbots that leverage Perplexity's AI for customer support.
- Integrating with applications that require natural language understanding and generation.
- Enabling developers to add conversational capabilities to their software using Perplexity's AI tools.
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-server-spragginsdesigns": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perplexity-mcp-server-spragginsdesigns"
]
}
}
}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-server-spragginsdesigns": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perplexity-mcp-server-spragginsdesigns"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"perplexity-mcp-server-spragginsdesigns": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perplexity-mcp-server-spragginsdesigns"
]
}
}
}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-server-spragginsdesigns": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perplexity-mcp-server-spragginsdesigns"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"perplexity-mcp-server-spragginsdesigns": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perplexity-mcp-server-spragginsdesigns"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"perplexity-mcp-server-spragginsdesigns": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perplexity-mcp-server-spragginsdesigns"
]
}
}
}FAQ
**What languages does the server support?**
The server is built using TypeScript, making it compatible with JavaScript environments.
**Is there authentication required?**
Yes, you need to provide a valid Perplexity API key in the configuration.
**Can I contribute to the development?**
Absolutely! You can fork the repository, create a feature branch, and submit a pull request with your changes.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":316,"uuid":"130f6497-bd6e-42cc-965d-bf51e430df8f","name":"perplexity-mcp-server","title":"Perplexity MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/43624199?v=4","created_at":"2024-12-13T13:03:47.970Z","updated_at":"2024-12-13T15:09:09.704Z","status":"created","author_name":"spragginsdesigns","author_avatar_url":"https://avatars.githubusercontent.com/u/43624199?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/spragginsdesigns/perplexity-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"1\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-04 11:25:40\"}","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"}]]}]