MCP server connector for Perplexity API, enabling web search within MCP ecosystem
Top 28.8% on sourcepulse
This project provides a Model Context Protocol (MCP) server that integrates Perplexity's Sonar API, enabling AI models like Claude to perform real-time web searches. It's designed for users of MCP-compatible applications, such as Claude Desktop or Cursor, who need to augment their AI's capabilities with live web data.
How It Works
The server acts as a bridge, translating user queries into requests for the Perplexity Sonar API. It accepts a structured message history and forwards it to the API, returning the search results to the calling application. This approach allows LLMs to access up-to-date information directly within their conversational context, enhancing accuracy and relevance.
Quick Start & Requirements
cd modelcontextprotocol/perplexity-ask
, and run npm install
.claude_desktop_config.json
with the provided JSON snippet, setting PERPLEXITY_API_KEY
. Build the Docker image using docker build -t mcp/perplexity-ask:latest -f Dockerfile .
.Highlighted Details
index.ts
.Maintenance & Community
api@perplexity.ai
for support or bug filing.Licensing & Compatibility
Limitations & Caveats
The project relies on an external Perplexity Sonar API key, which may incur costs or have usage limits. Configuration requires modifying application-specific JSON files.
3 months ago
1 week