What is Perplexity Web Search MCP Server: A simple MCP (Model Context Protocol) server that allows AI assistants, such as Claude, to perform web searches using the Perplexity API and retrieve up-to-date information.
How to use Perplexity Web Search MCP Server: 1. Clone the repository. 2. Install dependencies: `pip install -e .` or `uv pip install -e .` 3. Set your Perplexity API key with the `PERPLEXITY_API_KEY` environment variable or create a `.env` file with the key. 4. Run the server with: `python server.py` 5. Test the server functionality with the test script: `python test_server.py \"your search query\" --recency month` 6. Optionally configure with Claude Desktop by editing the `claude_desktop_config.json` file to integrate the server.
- How can I get a Perplexity API key? - Visit the Perplexity API settings at https://www.perplexity.ai/settings/api to create an account and generate your API key. - How do I test the server functionality without running it? - You can use the test script with: `python test_server.py \"your search query\" --recency month`. - How do I configure the server for Claude Desktop? - Edit the `claude_desktop_config.json` file with the server details and restart Claude Desktop.