Perplexity AI MCP Server

Perplexity AI MCP Server

By MCP-Mirror GitHub

Mirror of

mathgpt math-solver
Overview

what is Perplexity AI MCP Server?

Perplexity AI MCP Server is an implementation that integrates Perplexity AI's API, providing advanced search capabilities with multiple model options.

how to use Perplexity AI MCP Server?

To use the server, install the necessary packages, configure your API key, and execute the server using Node.js.

key features of Perplexity AI MCP Server?

  • Search using Perplexity AI's models
  • Support for all official Sonar models
  • Configurable result count
  • Detailed error handling and logging
  • MCP Inspector compatible

use cases of Perplexity AI MCP Server?

  1. Performing advanced searches using AI models.
  2. Integrating with applications that require intelligent search capabilities.
  3. Analyzing search results with detailed logging and error handling.

FAQ from Perplexity AI MCP Server?

  • What models are supported?

The server supports multiple models including sonar-reasoning-pro, sonar-reasoning, sonar-pro, and sonar.

  • How do I configure the API key?

Sign up for a Perplexity AI account, obtain your API key, and set it as an environment variable.

  • Is there a logging feature?

Yes, logs are written to perplexity-mcp.log in the project root directory.

Content

Perplexity AI MCP Server

An MCP server implementation that integrates Perplexity AI's API, providing advanced search capabilities with multiple model options.

Features

  • Search using Perplexity AI's models
  • Support for all official Sonar models
  • Configurable result count
  • Detailed error handling and logging
  • MCP Inspector compatible

Available Models

  • sonar-reasoning-pro (127k context)
  • sonar-reasoning (127k context)
  • sonar-pro (200k context)
  • sonar (127k context)

Installation

pnpm install
pnpm build

Configuration

API Key

  1. Sign up for a Perplexity AI account
  2. Get your API key from the dashboard
  3. Set the environment variable:
export PERPLEXITY_API_KEY=your_api_key_here

Usage

Direct Execution

node dist/index.js
# or if you made it executable
./dist/index.js

Development

pnpm dev

Testing with MCP Inspector

pnpm inspect

Tool Reference

Performs a search using Perplexity AI's models.

Parameters:

  • query (string, required): The search query
  • model (string, optional): Model to use (default: "sonar")
    • Available options: sonar-reasoning-pro, sonar-reasoning, sonar-pro, sonar
  • count (number, optional): Number of results (1-10, default: 5)

Development

Project Structure

src/perplexity/
├── index.ts        # Main server implementation
├── lib/
│   └── logger.ts   # Logging configuration
└── adr.md         # Architectural decisions

Logging

Logs are written to perplexity-mcp.log in the project root directory.

License

MIT

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a new Pull Request
No tools information available.

-

mathgpt math-solver
View Details
StatSource
StatSource by jamie7893

Statsource is a standalone MCP server designed to simplify data analysis. Whether you're pulling data from a PostgreSQL database or a CSV file, Statsource delivers actionable insights with ease

mathgpt math-solver
View Details

created from MCP server demo

mathgpt math-solver
View Details

-

mathgpt math-solver
View Details

created from MCP server demo

mathgpt math-solver
View Details
MCPserver
MCPserver by NextFEM

MCP server for AI chat

mathgpt math-solver
View Details