Perplexity MCP server

Web search and scraping

A Model Context Protocol (MCP) server that provides web search functionality using Perplexity AI's API.

Your AI app calls the Perplexity MCP server, which does the web search and scraping work and sends the result back to the chat.

About Perplexity

Perplexity is a community MCP server from jsonallen, filed in our directory under web search and scraping. A Model Context Protocol (MCP) server that provides web search functionality using Perplexity AI's API.

Perplexity runs on your own machine: your AI app starts it with the command npx -y @smithery/cli and talks to it over standard input and output.

At a glance

Publisher
jsonallen (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @smithery/cli
Written in
Python
License
MIT
GitHub stars
311

How to set up Perplexity

  1. Install Node.js on the machine that runs your AI app, because Perplexity starts with npx and downloads its package on first run.
  2. Check the Perplexity README for keys or settings; the registry lists none that Perplexity requires.
  3. Add Perplexity to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Perplexity tools to confirm the connection.
  5. Run one read-only task with Perplexity first, and keep your app asking before each tool call until the results look right.

Perplexity compared with similar servers

  • Google Surf by HarimxChoi has fewer GitHub stars than Perplexity (305 against 311); both are community servers, and both run locally.
  • Facebook Ads Library (RamsesAguirre777) by RamsesAguirre777 has fewer GitHub stars than Perplexity (311 against 311); both are community servers, and both run locally.
  • Perplexity (DaInfernalCoder) by DaInfernalCoder has fewer GitHub stars than Perplexity (297 against 311); both are community servers, and both run locally.

Before you connect Perplexity

  • Give Perplexity its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Perplexity tool call until you trust what it does with them.
  • Treat text that Perplexity fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Perplexity on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Perplexity

How marketing and sales teams put Perplexity to work, by company size. Pick the size closest to yours and start Perplexity on one use case.

Small business

  • A founder can use Perplexity to research a market or a prospect in minutes, with sources cited, before a pitch or a pricing change.
  • Small teams can ask Perplexity what competitors launched this month and get the pages, not just a summary.
  • Perplexity runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Perplexity to gather fresh data for content, such as stats, quotes and examples, with each source linked for checking.
  • Outbound teams can connect Perplexity to research accounts from public pages and add one specific line to each first email.
  • Start Perplexity on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise research and competitive intel teams can schedule Perplexity to monitor many sources, with results stored and cited for review.
  • Large orgs can route Perplexity through approved providers and respect each site's terms, keeping scraping inside legal guidance.
  • Perplexity is a community server, so have security review the code and pin a version before Perplexity touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Perplexity README

From jsonallen/perplexity-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

perplexity-mcp MCP server

A Model Context Protocol (MCP) server that provides web search functionality using Perplexity AI's API. Works with the Anthropic Claude desktop client.

Example

Let's you use prompts like, "Search the web to find out what's new at Anthropic in the past week."

Glama Scores

Components

Prompts

The server provides a single prompt:

  • perplexity_search_web: Search the web using Perplexity AI
    • Required "query" argument for the search query
    • Optional "recency" argument to filter results by time period:
      • 'day': last 24 hours
      • 'week': last 7 days
      • 'month': last 30 days (default)
      • 'year': last 365 days
    • Uses Perplexity's API to perform web searches
Tools

The server implements one tool:

  • perplexity_search_web: Search the web using Perplexity AI
    • Takes "query" as a required string argument
    • Optional "recency" parameter to filter results (day/week/month/year)
    • Returns search results from Perplexity's API

Installation

Installing via Smithery

To install Perplexity MCP for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install perplexity-mcp --client claude
Requires UV (Fast Python package and project manager)

If uv isn't installed.

# Using Homebrew on macOS
brew install uv

or

# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Environment Variables

The following environment variable is required in your claude_desktop_config.json. You can obtain an API key from Perplexity

  • PERPLEXITY_API_KEY: Your Perplexity AI API key

Optional environment variables:

  • PERPLEXITY_MODEL: The Perplexity model to use (defaults to "sonar" if not specified)

    Available models:

    • sonar-deep-research: 128k context - Enhanced research capabilities
    • sonar-reasoning-pro: 128k context - Advanced reasoning with professional focus
    • sonar-reasoning: 128k context - Enhanced reasoning capabilities
    • sonar-pro: 200k context - Professional grade model
    • sonar: 128k context - Default model
    • r1-1776: 128k context - Alternative architecture

And updated list of models is avaiable (here)[https://docs.perplexity.ai/guides/model-cards]

Cursor & Claude Desktop Installation

Add this tool as a mcp server by editing the Cursor/Claude config file.

  "perplexity-mcp": {
    "env": {
      "PERPLEXITY_API_KEY": "XXXXXXXXXXXXXXXXXXXX",
      "PERPLEXITY_MODEL": "sonar"
    },
    "command": "uvx",
    "args": [
      "perplexity-mcp"
    ]
  }
Cursor
  • On MacOS: /Users/your-username/.cursor/mcp.json
  • On Windows: C:\Users\your-username\.cursor\mcp.json

If everything is working correctly, you should now be able to call the tool from Cursor.

Claude Desktop
  • On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • On Windows: %APPDATA%/Claude/claude_desktop_config.json

To verify the server is working. Open the Claude client and use a prompt like "search the web for news about openai in the past week". You should see an alert box open to confirm tool usage. Click "Allow for this chat".

Questions about Perplexity

What is the Perplexity MCP server?

A Model Context Protocol (MCP) server that provides web search functionality using Perplexity AI's API. Perplexity is maintained by jsonallen on GitHub at jsonallen/perplexity-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Perplexity MCP server?

Add Perplexity to your AI app's MCP config with the command npx -y @smithery/cli. In Claude Code, run claude mcp add --transport stdio perplexity -- npx -y @smithery/cli. To run Perplexity this way you need Node.js installed.

Does Perplexity need an API key?

The registry lists no required keys for Perplexity. Check the Perplexity README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Perplexity an official MCP server?

No. Perplexity is a community server maintained by jsonallen. Community servers can be excellent; read the code and the open issues before you give Perplexity access to company data.

What license is Perplexity under?

Perplexity is released under the MIT license, according to its GitHub repository. The license covers the code of Perplexity; the service it connects to has its own terms.