modelcontextprotocol

This repository provides an MCP server implementation, "perplexity-ask," that integrates the Sonar API, enabling Claude to perform real-time web research and engage in conversations with live web searches.

996
68

Perplexity Ask MCP Server

This repository provides an MCP server implementation that integrates the Sonar API, enabling Claude to perform real-time, web-wide research.

Tools

  • perplexity_ask: Engages in conversations with the Sonar API for live web searches.
    • Inputs: An array of conversation messages, each containing a role (e.g., system, user, assistant) and content.

Configuration

  1. Clone the repository and install dependencies in the perplexity-ask directory using npm install.
  2. Obtain a Sonar API key from the Perplexity AI website and set it as the PERPLEXITY_API_KEY environment variable.
  3. Configure Claude Desktop by adding the perplexity-ask server to the claude_desktop_config.json file, specifying either a Docker command or an NPX command to run the server.
  4. Build the Docker image using docker build -t mcp/perplexity-ask:latest -f Dockerfile ..
  5. Verify the integration in Claude Desktop by checking for the hammer icon and the presence of the perplexity_ask tool.
  6. Advanced users can modify search parameters in the index.ts script, referring to the Perplexity API documentation.

License

This MCP server is licensed under the MIT License.

Repository

PP
ppl-ai

ppl-ai/modelcontextprotocol

Created

March 10, 2025

Updated

March 28, 2025

Language

JavaScript

Category

AI