Perplexity

v0.9.0Search & Data Extractionstable

Provides AI assistants with real-time web search, reasoning, and research capabilities through Perplexity's Sonar models and Search API. Supports quick searches, deep research, advanced reasoning, and direct web search with ranked results.

aiperplexitymcpmodelcontextprotocol
Share:
2,211
Stars
0
Downloads
0
Weekly
0/5

What is Perplexity?

Perplexity is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to provides ai assistants with real-time web search, reasoning, and research capabilities through perplexity's sonar models and search api. supports quick searches, deep research, advanced reasoning, and...

Provides AI assistants with real-time web search, reasoning, and research capabilities through Perplexity's Sonar models and Search API. Supports quick searches, deep research, advanced reasoning, and direct web search with ranked results.

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Provides AI assistants with real-time web search, reasoning,

Use Cases

Perform real-time web search and deep research with Sonar models.
Get ranked search results and advanced reasoning from one API.
perplexityai

Maintainer

LicenseMIT License
Languagetypescript
Versionv0.9.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @perplexity-ai/mcp-server

Manual Installation

npx -y @perplexity-ai/mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Perplexity

The Perplexity MCP Server connects AI assistants to Perplexity's Sonar models and Search API, enabling real-time web search, deep research, and advanced reasoning directly inside your MCP client. It exposes four distinct tools — quick search, conversational ask, comprehensive research, and structured reasoning — so you can choose the right depth for each query. Developers and researchers use it to ground AI responses in current information without leaving their editor or chat interface.

Prerequisites

  • Node.js 18 or later installed
  • A Perplexity API key (sign up at perplexity.ai and generate a key in the API settings)
  • An MCP client such as Claude Desktop, Cursor, VS Code, or Windsurf
  • npx available in your PATH (comes with Node.js)
1

Obtain a Perplexity API key

Log in to perplexity.ai, navigate to Settings → API, and generate a new API key. Copy it and store it somewhere safe — you will need it in the next step.

2

Add the server to Claude Code

Run the following command to register the Perplexity MCP server. Replace 'your_key_here' with your actual API key. This stores the key as an environment variable scoped to this server.

claude mcp add perplexity --env PERPLEXITY_API_KEY="your_key_here" -- npx -y @perplexity-ai/mcp-server
3

Configure in Claude Desktop (alternative)

If you use Claude Desktop instead of Claude Code CLI, add the server block to claude_desktop_config.json manually. The server launches on demand via npx.

{
  "mcpServers": {
    "perplexity": {
      "command": "npx",
      "args": ["-y", "@perplexity-ai/mcp-server"],
      "env": {
        "PERPLEXITY_API_KEY": "your_key_here"
      }
    }
  }
}
4

Verify the server starts

Restart your MCP client (or reload the window in VS Code/Cursor). The Perplexity tools — perplexity_search, perplexity_ask, perplexity_research, and perplexity_reason — should now appear in the tool list.

5

Optional: tune timeout and log level

For slow network environments or verbose debugging, set additional environment variables alongside PERPLEXITY_API_KEY. PERPLEXITY_TIMEOUT_MS controls the request timeout (default 5 minutes) and PERPLEXITY_LOG_LEVEL accepts DEBUG, INFO, WARN, or ERROR.

"env": {
  "PERPLEXITY_API_KEY": "your_key_here",
  "PERPLEXITY_TIMEOUT_MS": "120000",
  "PERPLEXITY_LOG_LEVEL": "INFO"
}

Perplexity Examples

Client configuration

Complete claude_desktop_config.json block for the Perplexity MCP server using npx.

{
  "mcpServers": {
    "perplexity": {
      "command": "npx",
      "args": ["-y", "@perplexity-ai/mcp-server"],
      "env": {
        "PERPLEXITY_API_KEY": "pplx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

Prompts to try

Example prompts that exercise each of the four Perplexity tools.

- "Search the web for the latest news on OpenAI's new model release."
- "Do deep research on the current state of quantum computing hardware and summarize the top breakthroughs from the past year."
- "Use advanced reasoning to compare the trade-offs between RAG and fine-tuning for a production chatbot."
- "Find the current price of Bitcoin and the main factors driving its movement today."

Troubleshooting Perplexity

Tool calls return 401 Unauthorized

Double-check that PERPLEXITY_API_KEY is set correctly and has not expired. Generate a new key in the Perplexity API settings and update the config.

Server times out on long research queries

Increase PERPLEXITY_TIMEOUT_MS to a higher value (e.g., 300000 for 5 minutes) in the env block of your MCP client config.

npx hangs the first time it runs

The first invocation downloads the @perplexity-ai/mcp-server package. Ensure you have a stable internet connection. After the first run, subsequent starts are faster because the package is cached.

Frequently Asked Questions about Perplexity

What is Perplexity?

Perplexity is a Model Context Protocol (MCP) server that provides ai assistants with real-time web search, reasoning, and research capabilities through perplexity's sonar models and search api. supports quick searches, deep research, advanced reasoning, and direct web search with ranked results. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Perplexity?

Install via npm with the command: npx -y @perplexity-ai/mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Perplexity?

Perplexity works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Perplexity free to use?

Yes, Perplexity is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "perplexity-api-platform-mcp-server": { "command": "npx", "args": ["-y", "@perplexity-ai/mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Perplexity?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides