perplexity-search-mcp
by fromdot
README.md
# perplexity-search-mcp
MCP server for web search via [Perplexity Sonar Pro](https://docs.perplexity.ai/) through [OpenRouter API](https://openrouter.ai/).
## Setup
### 1. Get an OpenRouter API Key
Get your API key from [openrouter.ai/keys](https://openrouter.ai/keys).
### 2. Add to MCP Client
Add to your MCP client config (e.g., AiderDesk, Claude Desktop):
```json
{
"mcpServers": {
"perplexity-search": {
"command": "npx",
"args": ["tsx", "src/index.ts"],
"cwd": "/path/to/perplexity-search-mcp",
"env": {
"OPENROUTER_API_KEY": "sk-or-..."
}
}
}
}
```
Or with the built version:
```json
{
"mcpServers": {
"perplexity-search": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/perplexity-search-mcp",
"env": {
"OPENROUTER_API_KEY": "sk-or-..."
}
}
}
}
```
## Tool
### `perplexity_search`
Search the web using Perplexity Sonar Pro.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | ✅ | The search query |
| `model` | string | ❌ | Model to use (default: `perplexity/sonar-pro-search`) |
**Available models:**
- `perplexity/sonar-pro-search` (default) — deeper search, more citations
- `perplexity/sonar-search` — faster, lighter
## Development
```bash
pnpm install
pnpm build
pnpm dev # run with tsx (no build needed)
```
## License
MIT
TDQS
A3.5/5.0
Scored across 1 tool
Disambiguation5/5
With only one tool, there is no possibility of ambiguity. The tool's purpose is clearly distinct by default.
Naming Consistency5/5
Only one tool exists, so naming is trivially consistent. The name 'perplexity_search' uses a clear verb_noun pattern.
Tool Count3/5
A single tool is borderline for a server. While it may suffice for a basic search function, it feels thin and lacks supplementary tools for a richer interaction.
Completeness4/5
The server is narrowly scoped to web search via Perplexity, and the single tool covers the core operation adequately. Minor gaps like filtering or history are absent but not critical for the stated purpose.
Maintenance
ActivityInactive
ResponsivenessNo issues