Lets agents send questions to the Perplexity API and receive answers with search context.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add perplexity-server-tanigami --env PERPLEXITY_API_KEY='<PERPLEXITY_API_KEY>' -- uvx mcp-server-perplexity~/.codex/config.toml
[mcp_servers.perplexity-server-tanigami]
command = "uvx"
args = ["mcp-server-perplexity"]
env = { PERPLEXITY_API_KEY = "<PERPLEXITY_API_KEY>" }
# codex mcp add perplexity-server-tanigami --env PERPLEXITY_API_KEY='<PERPLEXITY_API_KEY>' -- uvx mcp-server-perplexity~/.cursor/mcp.json
{
"mcpServers": {
"perplexity-server-tanigami": {
"command": "uvx",
"args": [
"mcp-server-perplexity"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"perplexity-server-tanigami": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-server-perplexity"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"perplexity-server-tanigami": {
"command": "uvx",
"args": [
"mcp-server-perplexity"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"perplexity-server-tanigami": {
"command": "uvx",
"args": [
"mcp-server-perplexity"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"perplexity-server-tanigami": {
"command": "uvx",
"args": [
"mcp-server-perplexity"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}Environment variables
PERPLEXITY_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.