Skip to content

MCP setupWorkflow

Perplexity MCP Server

Add Perplexity's official MCP server so your coding agent can run live web searches and get cited research answers while it works.

npx workspacetemplates add perplexity-mcp --tool claude-code

Writes 1 file to your project root

.mcp.jsonmerge into your file14 lines · 228 BFile
{
  "mcpServers": {
    "perplexity": {
      "command": "npx",
      "args": [
        "-y",
        "@perplexity-ai/mcp-server"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "${PERPLEXITY_API_KEY}"
      }
    }
  }
}

What it does

Perplexity's MCP server gives an agent four tools: ranked web search, quick conversational answers, deep research with citations, and step-by-step reasoning. It is useful when a library changed after the model's training data ended.

This setup runs the server locally through npx and reads your key from the PERPLEXITY_API_KEY variable. Perplexity also offers a hosted Streamable HTTP endpoint with OAuth sign-in, if you prefer no local process.

Example

you › Use perplexity_search to find what changed in the latest Vite major release and list the breaking changes.

agent › Top results point to the Vite release notes and migration guide. Breaking changes: the minimum Node version was raised, a plugin hook was renamed, and one default build target moved. Each item cites its source URL.

Questions

Which tool should I ask for?
perplexity_search returns ranked links, perplexity_ask answers quickly, perplexity_research digs deeper with citations, and perplexity_reason handles logic problems.
Is there a way to avoid the local process?
Yes. Perplexity documents a remote server at https://api.perplexity.ai/mcp that signs in with OAuth or a bearer API key.
Does search_type fast matter?
Setting it on perplexity_search gives lower latency and cost. It needs local server version 1.3.0 or later.
  • Asana MCP Server

    MCP setupWorkflow

    Free
  • Atlassian MCP Server

    MCP setupWorkflow

    Free
  • Brave Search MCP Server

    MCP setupWorkflow

    Free
  • ClickUp MCP Server

    MCP setupWorkflow

    Free