Home / MCP / Perplexity MCP Server
Provides Perplexity tool integration with Claude Desktop for single questions and multi-turn conversations.
Configuration
View docs{
"mcpServers": {
"perplexity": {
"command": "node",
"args": [
"/absolute/path/to/perplexity-mcp/server.js"
],
"env": {
"PERPLEXITY_API_KEY": "your_perplexity_api_key"
}
}
}
}This MCP server enables Perplexity AI to be used as a tool provider inside Claude Desktop. You can run it locally or install it globally, connect through Claude Desktop, and choose Perplexity models for single questions or multi-turn conversations.
You will run the Perplexity MCP server locally or globally, then configure Claude Desktop to load the Perplexity tools. Once set up, Claude can send questions or chat messages to Perplexity and receive responses for display in the Claude interface.
Prerequisites you need before installing are Node.js v16 or higher, Claude Desktop (latest), and a Perplexity API key.
Option 1: Clone and Run Locally
1. Clone the repository
2. Install dependencies
3. Create a .env file with your API key
4. Test the server
Option 2: Install Globally
1. Clone and navigate to the repository as above
2. Install globally
3. Run the server from anywhere
To connect Claude Desktop to the Perplexity MCP server, use one of the MCP JSON configurations shown below. Choose the standard local setup for a direct node run, or the global setup to run via npx. If you use Node Version Manager (NVM), use absolute paths in your configuration.
{
"mcpServers": {
"perplexity": {
"command": "node",
"args": [
"/absolute/path/to/perplexity-mcp/server.js"
],
"env": {
"PERPLEXITY_API_KEY": "your_perplexity_api_key"
}
}
}
}{
"mcpServers": {
"perplexity": {
"command": "npx",
"args": [
"perplexity-mcp"
],
"env": {
"PERPLEXITY_API_KEY": "your_perplexity_api_key"
}
}
}
}{
"mcpServers": {
"perplexity": {
"command": "/Users/username/.nvm/versions/node/v16.x.x/bin/node",
"args": [
"/Users/username/path/to/perplexity-mcp/server.js"
],
"env": {
"PERPLEXITY_API_KEY": "your_perplexity_api_key"
}
}
}
}If you encounter issues, check the log files for clues, verify that your API key is valid, ensure the configuration file is correctly formatted, and enable verbose logging by setting the DEBUG environment variable to 1.
Send a single question to Perplexity. Accepts a required query and an optional model.
Engage in a multi-turn conversation with Perplexity. Accepts an array of messages and an optional model.