Skip to main content

Overview

The Perplexity MCP Server enables AI assistants to access Perplexity’s powerful search and reasoning capabilities directly within their workflows. Using the Model Context Protocol (MCP), you can integrate real-time web search, conversational AI, and advanced reasoning into any MCP-compatible client. There are two ways to connect:
  • Remote MCP server (recommended): hosted by Perplexity at https://api.perplexity.ai/mcp. No installation, nothing to update, works with any client that supports remote MCP servers.
  • Local MCP server: run the open-source server on your machine over stdio. Use this if your client only supports stdio servers or you need to pin a version.
Both expose the same tools and behave identically.
The Model Context Protocol (MCP) is an open standard that connects AI assistants with external data sources and tools. Learn more at modelcontextprotocol.io.
This page is for adding Perplexity as an MCP tool inside clients such as Claude Code, Cursor, VS Code, and Claude Desktop. To call the Perplexity API from application code, start with the Quickstart. To select Claude models through the Agent API, use Anthropic model IDs from Agent API models.

Remote MCP Server

Connect to https://api.perplexity.ai/mcp (Streamable HTTP) and authenticate with your API key as a bearer token:

Generate API Key

Navigate to the API Portal and generate a new key.
Tool calls are billed to the API key you connect with at standard API pricing. Your key’s existing rate limits apply.

Local MCP Server

Run the same server locally over stdio.

One-Click Install

Install in Cursor

Automatically configure the Perplexity MCP server in Cursor with one click.

Install in VS Code

Automatically configure the Perplexity MCP server in VS Code with one click.

Manual Setup

1

Get Your API Key

Generate API Key

Navigate to the API Portal and generate a new key.
2

Configure Your Client

Add the MCP server to your client configuration:
Option 1: CLI Command (Recommended)The easiest way to get started:
Option 2: Plugin InstallInstall via plugin:
Option 3: Manual ConfigurationAdd to your claude.json:
3

Start Using

Restart your MCP client and start using Perplexity’s tools in your AI workflows.

Available Tools

perplexity_search

Direct web search using the Perplexity Search API. Returns ranked search results with titles, URLs, snippets, and metadata.Best for: Finding current information, news, facts, or specific web content.

perplexity_ask

General-purpose conversational AI with real-time web search, backed by the Agent API fast preset.Best for: Quick questions, everyday searches, and conversational queries that benefit from web context.

perplexity_research

Deep, comprehensive research backed by the Agent API high preset. Provides thorough analysis with citations.Best for: Complex topics requiring detailed investigation, comprehensive reports, and in-depth analysis.

perplexity_reason

Advanced reasoning and problem-solving backed by the Agent API medium preset.Best for: Logical problems, complex analysis, decision-making, and tasks requiring step-by-step reasoning.
For detailed setup instructions, troubleshooting, and proxy configuration, visit our GitHub repository.