Content
# 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](https://www.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**:
```bash
./start_mcp_python.sh
```
2. The server provides the following tool:
- `search`: Perform a search query using the Perplexity API
```python
# Example usage
query = "What are the best practices for Python exception handling?"
result = search(query)
```
## License
MIT
You Might Also Like
mcp-chrome
Transform your Chrome into an AI-powered automation tool.
firecrawl-mcp-server
Firecrawl MCP Server enables web scraping, crawling, and content extraction.
Firecrawl
Firecrawl MCP Server enables web scraping, crawling, and content extraction.
experiments-with-mcp
A collection of practical experiments with MCP using various libraries.
guidance-for-deploying-model-context-protocol-servers-on-aws
Guidance for deploying Model Context Protocol servers on AWS with secure...
mcp-hubspot
MCP server for AI assistants to access HubSpot CRM data efficiently.