Skip to main content
Glama

Perplexity Agent MCP

by Jercik

Perplexity Agent MCP

An opinionated Model Context Protocol server that seamlessly integrates Perplexity AI's Sonar models into AI coding assistants like Claude Code. It provides two specialized, purpose-built tools—lookup for instant fact-checking of API syntax and documentation details, and answer for comprehensive research with actionable recommendations—delivering clean, focused responses without internal reasoning.

Setup

First, install and link the server:

npm install npm link

Then add it to your Claude config file (~/.claude.json or ~/.config/claude/config.json):

"mcpServers": { "perplexity": { "command": "perplexity-agent-mcp", "env": { "PERPLEXITY_API_KEY": "your-api-key-here" } } }

Restart Claude Code after saving, and you're ready to go.

How it works

The server provides two tools:

  • lookup: Gets quick facts from documentation (like API syntax or config keys)
  • answer: Does deeper research to compare options and make recommendations

Both tools return clean, focused answers without any internal reasoning clutter. The server picks the right AI model for each job—fast for lookups, thorough for research.

Requirements

  • Node.js v24 or newer
  • A Perplexity API key
-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables coding assistants to access Perplexity AI for quick fact-checking and in-depth research. Provides two tools: lookup for fast documentation queries and answer for comprehensive research with recommendations.

  1. Setup
    1. How it works
      1. Requirements

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Enables intelligent code analysis and debugging through the Perplexity AI's API, offering detailed error analysis, pattern detection, and comprehensive solutions, with integration support for the Claude desktop client.
          Last updated -
          270
          11
          MIT License
          • Apple
        • -
          security
          F
          license
          -
          quality
          Provides AI-powered assistance for coding problems using Google's Gemini AI, combined with Perplexity insights and Stack Overflow references, facilitating contextual analysis and automatic response archiving for improved troubleshooting.
          Last updated -
          13
        • -
          security
          A
          license
          -
          quality
          Provides access to Perplexity AI models through two tools: ask\_perplexity for expert programming assistance and chat\_perplexity for maintaining ongoing conversations with context preservation.
          Last updated -
          MIT License
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          A powerful research assistant that integrates with Cline and Claude Desktop to leverage Perplexity AI for intelligent search, documentation retrieval, API discovery, and code modernization assistance while coding.
          Last updated -
          3
          MIT License

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jercik/perplexity-agent-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server