perplexity-mcp-server

perplexity-mcp-server

1

The Perplexity MCP Server is designed to connect AI systems with the Perplexity AI API using the Model Context Protocol. It facilitates search-augmented queries and supports robust utilities for logging and error management. The project emphasizes type safety and security.

Perplexity MCP Server

An MCP server providing tools to interact with the Perplexity AI API. This server enables AI systems to use Perplexity's search-augmented query capabilities. It includes features such as reusable components for logging, error handling, strong typing with TypeScript, and security features like input sanitization.

Core Features

  • Utilities for logging, error handling, and ID generation.
  • Type Safety with TypeScript.
  • Error Handling with pattern classification.
  • Security with input validation.
  • A tool for interacting with the Perplexity Search API.

Installation

  1. Clone the repository and navigate into it.
  2. Install dependencies using npm.
  3. Build the project.

Configuration

  • Requires environment variables such as PERPLEXITY_API_KEY.
  • MCP Client settings for server integration are provided.

Project Structure

  • Modular structure located in src/ directory.
  • Core components include configuration management, server setup, and tool implementations.