Skip to content
← All MCP servers

Is the Perplexity MCP server safe? What it can reach

What the Perplexity MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Perplexity maintains this server, which runs locally over stdio or as a hosted endpoint at api.perplexity.ai/mcp. It signs in with a Perplexity API key. All five tools search, fetch or answer questions and none change an account, so the main exposure is the key itself and the text sent to the API.

Who maintains it

ImplementationKindStatus
Perplexity’s official MCP serverOfficialactive

It runs as a local process on your machine or as a hosted remote server. The documented endpoint is https://api.perplexity.ai/mcp.

How it signs in

A Perplexity API key, set as PERPLEXITY_API_KEY for the local server or sent as a Bearer header to the hosted one. Calls bill against that key’s account.

What its tools can do

KindTools
Readperplexity_search, perplexity_context, perplexity_ask, perplexity_research, perplexity_reason
Writenone documented
Can’t be undonenone documented

All five tools query the Perplexity API. perplexity_context fetches URLs through the Context API.

Built-in limits

OptionWhat it does
max_tokens, max_tokens_per_pageperplexity_ask and perplexity_reason accept token budgets (up to 120,000 and 20,000) that cap each call.
search_domain_filter, search_recency_filterperplexity_search accepts domain and recency filters to narrow results.
BIND_ADDRESSThe self-hosted HTTP mode binds to 127.0.0.1 by default. Setting 0.0.0.0 exposes it on all interfaces.
ALLOWED_ORIGINS, ALLOWED_HOSTSSelf-hosted HTTP mode only accepts listed origins and extra Host values.

The risks

  • An injected instruction can make the agent send private text from your session to Perplexity as search queries, because every tool forwards its input to the API.
  • perplexity_context fetches URLs, so a hostile page or prompt can steer the agent to pull attacker-chosen content back into the conversation.
  • The API key bills your account, so a looping agent running perplexity_research can run up charges.
  • The README mentions no read-only mode or tool allowlist, so narrowing tools has to happen in your client.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --env PERPLEXITY_API_KEY=... perplexity -- npx -y @perplexity-ai/mcp-server

Claude Code names MCP tools mcp__perplexity__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "ask": [
      "mcp__perplexity__perplexity_research",
      "mcp__perplexity__perplexity_context"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.perplexity]
command = "npx"
args = ["-y", "@perplexity-ai/mcp-server"]
env_vars = ["PERPLEXITY_API_KEY"]

Checklist

  • Create a dedicated API key with a spending limit for the agent.
  • Keep PERPLEXITY_API_KEY in your environment, not in a committed config file.
  • Ask before perplexity_research and perplexity_context run.
  • Leave BIND_ADDRESS at 127.0.0.1 if you self-host the HTTP mode.

Checked against the vendor documentation on November 25, 2026. perplexityai/modelcontextprotocol README · Repository metadata (GitHub API)

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing