# Perplexityai MCP Server (MCP server)

> Perplexityai MCP Server is an MCP server that adds search and knowledge tools to AI assistants such as Claude Desktop, Claude Code and Cursor. The official MCP server implementation for the Perplexity API Platform. It has 2,589 GitHub stars, is released under the MIT license and runs locally with npx -y @perplexity-ai/mcp-server.

The official MCP server implementation for the Perplexity API Platform, providing AI assistants with real-time web search, reasoning, and research capabilities through the Agent API and the Search API.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/perplexityai/modelcontextprotocol |
| GitHub stars | 2,589 |
| License | MIT |
| Language | TypeScript |
| Transport | stdio |
| Packages | npm: @perplexity-ai/mcp-server |
| Remote URL | none |
| Needs API key | yes |
| Official | yes |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | AI & search |
| Latest release | none |
| Last commit | Oct 21, 2026 |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "perplexityai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@perplexity-ai/mcp-server"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "your-value"
      }
    }
  }
}
```

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --env PERPLEXITY_API_KEY=your-value --transport stdio perplexityai-mcp-server -- npx -y @perplexity-ai/mcp-server
```

### Cursor (.cursor/mcp.json)

```json
{
  "mcpServers": {
    "perplexityai-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@perplexity-ai/mcp-server"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "your-value"
      }
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

### VS Code (.vscode/mcp.json)

```json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "perplexity_api_key",
      "description": "PERPLEXITY_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "perplexityai-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@perplexity-ai/mcp-server"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "${input:perplexity_api_key}"
      }
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Environment variables

- `PERPLEXITY_API_KEY` (secret): Shown in the README's example configuration.

## Tools

- `medium`: 4000
- `high`: 8000

## Similar MCP servers

- [Ddgs](https://appsgit.com/mcp-servers/ddgs): A metasearch library that aggregates results from diverse web search services. (3,031 stars, MIT)
- [Tavily MCP](https://appsgit.com/mcp-servers/tavily-mcp): MCP server for advanced web search using Tavily. (2,460 stars, MIT, needs API key)
- [Socraticode](https://appsgit.com/mcp-servers/socraticode): MCP server for enterprise local codebase indexing, semantic search, and code dependency graphs. (3,354 stars, AGPL-3.0, needs API key)
- [Claude Real Video](https://appsgit.com/mcp-servers/claude-real-video): Let any LLM watch a video locally — and search everything it has ever watched. (2,263 stars, MIT)
- [Hyperresearch](https://appsgit.com/mcp-servers/hyperresearch): Convert Claude Code or Codex into the most intelligent Deep Research Agent. (4,111 stars, MIT)
- [Microsoft Learn MCP](https://appsgit.com/mcp-servers/microsoft-learn-mcp): Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs. (1,953 stars, CC-BY-4.0, official)

---

Canonical page: https://appsgit.com/mcp-servers/perplexityai-mcp-server
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
