MCP Server LogoMCP Server
MCPsCategoriesDirectorySubmit
Submit
MCPsCategoriesDirectorySubmit
Submit

MCP Servers

A curated list of MCP Servers, featuring Awesome MCP Servers and Claude MCP integration.

Contact Us

[email protected]

About

Privacy PolicyTerms of Service

Resources

Model Context ProtocolMCP Starter GuideClaude MCP Servers

Community

GitHub

© 2025 mcpserver.cc © 2025 MCP Server. All rights reserved.

Privacy PolicyTerms of Service
  1. Home
  2. /Categories
  3. /Search & Knowledge Discovery
  4. /Perplexity Mcp Server
Perplexity Mcp Server

Perplexity Mcp Server

Created by gomcpgo•a day ago
Visit Website

This Model Context Protocol (MCP) server enables LLMs like Claude to perform internet research using the Perplexity API. It provides real-time, up-to-date information with source citations.

Search & Knowledge Discovery
MCPAPILLMsearch

Perplexity MCP Server

An MCP (Model Context Protocol) server that provides access to Perplexity AI’s powerful search capabilities, including web search, academic research, financial data, and advanced filtering options.

Features

The Perplexity MCP server offers four specialized search functions, each optimized for different use cases. All functions automatically return source URLs, allowing LLMs to fetch additional information if needed.

1. perplexity_search

General web search with real-time information. Best for current events, general knowledge, and quick facts.

2. perplexity_academic_search

Automatically filters to academic sources (arxiv.org, pubmed, journals). Best for research papers, scientific studies, and scholarly content.

3. perplexity_financial_search

Optimized for financial domains and recent data. Best for stock analysis, earnings reports, SEC filings, and market trends.

4. perplexity_filtered_search

Advanced search with multiple filtering options. Best when you need specific domain filtering, content types, or location-based results.

Installation

  1. Ensure you have Go 1.23 or later installed
  2. Clone this repository
  3. Build the server:
    ./run.sh
    

Configuration

The server requires a Perplexity API key and supports various configuration options through environment variables:

Required

  • PERPLEXITY_API_KEY: Your Perplexity AI API key

Optional

  • PERPLEXITY_DEFAULT_MODEL: Default model to use (default: “sonar”)
    • sonar: Fast, cost-effective search for quick facts
    • sonar-pro: Comprehensive search with better depth and coverage
  • PERPLEXITY_MAX_TOKENS: Maximum tokens in response (default: 1024)
  • PERPLEXITY_TEMPERATURE: Response randomness 0-2 (default: 0.2)
  • PERPLEXITY_TOP_P: Nucleus sampling parameter (default: 0.9)
  • PERPLEXITY_TOP_K: Top-k sampling parameter (default: 0)
  • PERPLEXITY_TIMEOUT: Request timeout duration (default: 30s)
  • PERPLEXITY_RETURN_IMAGES: Include images by default (default: false)
  • PERPLEXITY_RETURN_RELATED: Include related questions by default (default: false)

Usage

MCP Server Mode

Run the server in MCP mode (default):

export PERPLEXITY_API_KEY="your-api-key"
./perplexity

Test Mode

Run integration tests against the real Perplexity API:

export PERPLEXITY_API_KEY="your-api-key"
./perplexity -test

MCP Client Configuration

To use this server with an MCP client, add it to your client configuration:

{
  "servers": {
    "perplexity": {
      "command": "path/to/perplexity",
      "env": {
        "PERPLEXITY_API_KEY": "your-api-key"
      }
    }
  }
}

Function Reference

perplexity_search

Perform a general web search.

Parameters:

  • query (required): The search query
  • model: Choose ‘sonar’ for quick searches or ‘sonar-pro’ for comprehensive results (default: sonar)
  • search_domain_filter: Array of domains to include
  • search_exclude_domains: Array of domains to exclude
  • search_recency_filter: Time filter (hour, day, week, month, year)
  • return_images: Include images
  • return_related_questions: Include related questions
  • max_tokens: Maximum response tokens
  • temperature: Response randomness (0-2)
  • date_range_start: Start date (YYYY-MM-DD)
  • date_range_end: End date (YYYY-MM-DD)
  • location: Geo-specific search location

Example:

{
  "query": "latest AI developments",
  "model": "sonar-pro",
  "search_recency_filter": "week",
  "return_citations": true
}

perplexity_academic_search

Search academic papers and scholarly content.

Parameters:

  • query (required): The academic search query
  • subject_area: Academic subject (e.g., “Physics”, “Computer Science”)
  • model: Defaults to ‘sonar-pro’ for comprehensive academic results
  • search_domain_filter: Array of academic domains
  • search_recency_filter: Time filter
  • max_tokens: Maximum response tokens
  • temperature: Response randomness

Example:

{
  "query": "quantum computing applications",
  "subject_area": "Physics",
  "search_recency_filter": "year"
}

perplexity_financial_search

Search financial data and SEC filings.

Parameters:

  • query (required): The financial search query
  • ticker: Stock ticker symbol (e.g., “AAPL”)
  • company_name: Company name
  • report_type: Financial report type (e.g., “10-K”, “10-Q”, “8-K”)
  • model: Defaults to ‘sonar-pro’ for comprehensive financial data
  • search_recency_filter: Time filter
  • date_range_start: Report start date
  • date_range_end: Report end date
  • max_tokens: Maximum response tokens

Example:

{
  "query": "quarterly earnings",
  "ticker": "MSFT",
  "report_type": "10-Q",
  "search_recency_filter": "month"
}

perplexity_filtered_search

Advanced search with comprehensive filtering.

Parameters:

  • query (required): The search query
  • model: Choose based on needs (defaults to sonar-pro)
  • search_domain_filter: Array of domains to include
  • search_exclude_domains: Array of domains to exclude
  • search_recency_filter: Time filter
  • content_type: Type of content (news, academic, blog, etc.)
  • file_type: File type filter (pdf, doc, html, etc.)
  • language: Language filter
  • country: Country for geo-specific search
  • date_range_start: Start date
  • date_range_end: End date
  • return_citations: Include citations
  • return_images: Include images
  • return_related_questions: Include related questions
  • max_tokens: Maximum response tokens
  • temperature: Response randomness
  • custom_filters: Object with additional key-value filters

Example:

{
  "query": "renewable energy innovations",
  "content_type": "news",
  "language": "English",
  "country": "Germany",
  "search_recency_filter": "month",
  "custom_filters": {
    "industry": "energy",
    "technology": "solar"
  }
}

Response Format

All search functions return responses in the following format:

  1. Main Content: The search results and answer
  2. Source URLs: A list of source URLs that the LLM can fetch for more details
  3. Detailed Sources (if available): Title, URL, and snippet for each source
  4. Related Questions (if requested): Suggested follow-up questions

Example response structure:

[Main search results content...]

## Source URLs
1. https://example.com/article1
2. https://example.com/article2
3. https://example.com/article3

## Detailed Sources
1. **Article Title**
   URL: https://example.com/article1
   Snippet: Brief excerpt from the article...

## Related Questions
- What are the latest developments?
- How does this compare to...?

Development

Running Tests

Run unit tests:

go test ./pkg/...

Run integration tests with real API:

go run cmd/main.go -test

Project Structure

perplexity/
├── cmd/
│   └── main.go              # MCP server entry point
├── pkg/
│   ├── types/               # API types and constants
│   ├── perplexity/          # Perplexity client and search functions
│   └── config/              # Configuration management
├── test/
│   └── integration_test.go  # Integration tests
└── README.md

Error Handling

The server handles various error conditions:

  • Invalid or missing API key (401)
  • Rate limiting (429)
  • Invalid parameters (400)
  • Server errors (500)

Errors are returned with descriptive messages to help diagnose issues.

License

MIT License - see LICENSE file for details.

Prerequisites

  • •Familiarity with the server domain
  • •Basic understanding of related technologies
  • •Knowledge of Search & Knowledge Discovery

Recommended Server

Mcp Server Server

Mcp Server Server

MCP server of servers

Dify Workflow Mcp

Dify Workflow Mcp

Cve Search_mcp

Cve Search_mcp

A Model Context Protocol (MCP) server for querying the CVE-Search API

View more → →

Details

Created

August 28, 2025

Last Updated

August 28, 2025

Category

Search & Knowledge Discovery

Author

gomcpgo

Share

More Server

Mcp Server File Modifier

Mcp Server File Modifier

Model Context Protocol server for file modifications and control

Esxi Mcp Server

Esxi Mcp Server

A VMware ESXi/vCenter management server based on MCP (Model Control Protocol), providing simple REST API interfaces for virtual machine management.

Hefeng Mcp Weather

Hefeng Mcp Weather

an mcp server for hefeng weather api

Mcp Github Issue

Mcp Github Issue

An MCP server that provides LLMs with the ability to use GitHub issues as tasks