About MCP Perplexity Server
MCP Perplexity Server exposes Perplexity API Ask and Search modes to MCP clients. It is configured with environment variables and requires a Perplexity API key.
Key features
- 01Ask and Search modes
- 02Environment-variable configuration
- 03Perplexity API access
Use cases
- 01Ask Perplexity questions from an MCP client
- 02Search with Perplexity through an MCP client
MCP support
As an MCP server, it makes Perplexity API Ask and Search modes available to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y github:lostmind008/mcp-perplexity-serverPERPLEXITY_API_KEYSecretMCP_SERVER_PORTMCP_MODELocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Perplexity Server
A Model Context Protocol (MCP) server implementation for the Perplexity API.
Features
- Supports both Ask and Search modes
- Simple configuration via environment variables
- Direct integration with MCP clients
Installation
You can use this server directly from GitHub in your MCP configuration:
{
"perplexity-ask": {
"command": "npx",
"args": [
"-y",
"github:lostmind008/mcp-perplexity-server"
],
"env": {
"PERPLEXITY_API_KEY": "your-api-key",
"MCP_SERVER_PORT": "3000",
"MCP_MODE": "ask"
}
},
"perplexity-search": {
"command": "npx",
"args": [
"-y",
"github:lostmind008/mcp-perplexity-server"
],
"env": {
"PERPLEXITY_API_KEY": "your-api-key",
"MCP_SERVER_PORT": "3001",
"MCP_MODE": "search"
}
}
}
Environment Variables
PERPLEXITY_API_KEY: Your Perplexity API key (required)MCP_SERVER_PORT: Port for the MCP server (default: 3000)MCP_MODE: Server mode - 'ask' or 'search' (default: 'ask')
Usage
Once configured, you can use this server with any MCP client by specifying the appropriate server name:
perplexity-ask "What is the capital of France?"
perplexity-search "Best programming languages 2025"
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.