Related MCP Server Resources

Explore more AI models, providers, and integration options:

  • Explore AI Models
  • Explore AI Providers
  • Explore MCP Servers
  • LangDB Pricing
  • Documentation
  • AI Industry Blog
  • Perplexity MCP Server
  • Vertex AI MCP Server
  • Perplexity AI MCP Server
  • Gemini MCP Image Generation Server
  • Xano MCP Server for Smithery
Back to MCP Servers
Perplexity Insight MCP Server

Perplexity Insight MCP Server

Public
TheoLawrence86/perplexity-insight-MCP

Interfaces with the Perplexity AI API to provide advanced question answering capabilities through the standardized Model Context Protocol, supporting multiple Perplexity models.

Verified
javascript
0 tools
May 29, 2025
Updated May 30, 2025

Perplexity Insight MCP Server

An MCP server implementation for interfacing with the Perplexity AI API, providing advanced question answering capabilities through the standardised Model Context Protocol.

Features

  • Seamless integration with Perplexity AI API
  • Support for different Perplexity models (sonar-reasoning, sonar-pro, sonar-deep-research)
  • Customisable system prompts and user queries
  • Proper error handling and response formatting
  • Rate limiting protection
  • Easy integration with Windsurf IDE

Requirements

  • Node.js 18+
  • Perplexity API key

Installation

npm install

Environment Variables

Create a .env file with the following variables:

PERPLEXITY_API_KEY=your_api_key_here

Usage

Run the server:

npm start

API Tools

The server exposes the following tools:

  1. perplexity_ask - Send a direct question to Perplexity AI
  2. perplexity_search - Perform a search query with Perplexity AI

Changing Models

Both tools support the following Perplexity models:

  • sonar-reasoning (default) - Perplexity's reasoning-focused model, best for general questions
  • sonar-pro - Enhanced model with improved capabilities for professional use cases
  • sonar-deep-research - Specialised for in-depth research and complex queries

To specify a model when using the tools, include the model parameter in your request:

Ask Perplexity using sonar-deep-research: What are the latest advancements in quantum computing?

You can also customise the system prompt and maximum token count:

Search with Perplexity using sonar-pro with system prompt "You are a helpful research assistant" and max tokens 2000: Latest developments in renewable energy

Tool Response Format

The server follows the MCP specification for tool responses:

{ content: [ { type: "text", text: "Response content from Perplexity AI" } ], isError: false // or true if an error occurred }

Windsurf Integration

Setting up in Windsurf

  1. Build the server:

    npm run build
  2. Open Windsurf and navigate to Settings

  3. Find the "AI Settings" or "Model Context Protocol" section

  4. Add a new MCP server with the following details:

    • Name: Perplexity Insight
    • Type: Local Process
    • Command: Path to your Node.js executable
    • Arguments: Path to your compiled index.js file
    • Working Directory: Path to your project directory
    • Environment Variables: Make sure to include PERPLEXITY_API_KEY=your_api_key_here
  5. Enable the server and restart Windsurf if necessary

Example Configuration

Here's an example configuration for the mcp_config.json file:

"perplexity-ask": { "command": "node", "args": [ "/path/to/perplexity-insight-MCP/dist/index.js" ], "cwd": "/path/to/perplexity-insight-MCP", "env": { "PERPLEXITY_API_KEY": "pplx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } }

Replace /path/to/perplexity-insight-MCP with the actual path to your installation directory and use your actual Perplexity API key.

Using Perplexity in Windsurf

  • Use the AI Assistant panel to ask questions that will be directed to Perplexity
  • For web searches, include specific terms like "search for" in your queries
  • To change models, include the model name in your query as shown in the "Changing Models" section
  • Windsurf will automatically use the appropriate Perplexity tool based on your query

Development

For local development:

npm run dev

Troubleshooting

If you encounter issues with the MCP server:

  1. Check that your API key is valid and properly set in the .env file
  2. Verify that the response format matches the MCP specification
  3. Look for any error messages in the server logs
  4. Ensure Windsurf is properly configured to use the MCP server

License

MIT

Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • Perplexity MCP Server
    Perplexity MCP Server

    Provides access to Perplexity AI models through two tools: ask\_perplexity for expert programming as...

    Added May 30, 2025
  • Vertex AI MCP Server
    Vertex AI MCP Server

    Implementation of Model Context Protocol (MCP) server that provides tools for accessing Google Cloud...

    20 tools
    Added May 30, 2025
  • Perplexity AI MCP Server
    Perplexity AI MCP Server

    Provides a standardized way to integrate Perplexity AI's features like chat, search, and documentati...

    5 tools
    Added May 30, 2025
  • Gemini MCP Image Generation Server
    Gemini MCP Image Generation Server

    A Model Context Protocol server that provides image generation capabilities using Google's Gemini 2 ...

    1 tools
    Added May 30, 2025
  • Xano MCP Server for Smithery
    Xano MCP Server for Smithery

    A Model Context Protocol server that enables Claude AI to interact with Xano databases, providing co...

    Added May 30, 2025