Skip to content

ecodelearn/perplexity-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perplexity MCP Server

A Python-based MCP server that integrates with Perplexity's Sonar Pro API to perform intelligent searches and research assistance.

Features

Search

Performs search queries using the Perplexity API to get comprehensive information on any topic.

Prerequisites

  1. Python Requirements:

    • Python 3.x
    • uv package manager (for virtual environment and dependency management)
  2. API Key:

    • Get your Perplexity API key from perplexity.ai/settings/api
    • Set the PERPLEXITY_API_KEY environment variable before running the server (see start_mcp_python.sh for details)

Installation

  1. The server uses a virtual environment managed by uv. The startup script will:
    • Create a virtual environment if it doesn't exist
    • Install required dependencies (mcp and requests)
    • Set up the Perplexity API key
    • Launch the MCP server

Usage

  1. Start the Server:

    ./start_mcp_python.sh
  2. The server provides the following tool:

    • search: Perform a search query using the Perplexity API
      # Example usage
      query = "What are the best practices for Python exception handling?"
      result = search(query)

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published