The Perplexity MCP Server allows you to perform web searches using Perplexity AI. It provides a single tool called perplexity_search that takes a query as input and uses the Perplexity AI API to execute web searches. The server includes cross-platform support with specific setup instructions for Windows and development/production modes, and uses an .env file for API key configuration.
Allows to search the web using Perplexity AI by providing a query parameter through the 'perplexity_search' tool
Perplexity MCP Server
This is a simple MCP server that allows you to search the web using Perplexity AI.
Installation
Prerequisites
Node.js 18+ (Download from nodejs.org)
Git (Download from git-scm.com)
A Perplexity AI API key
Steps for Windows
Clone the repository:
Install dependencies:
Create environment file:
Create a new file named
.envin the root directoryAdd your Perplexity AI API key:
PERPLEXITY_API_KEY=your_api_key_here
Related MCP server: Perplexity AI MCP Server
Usage on Windows
Development Mode
Production Mode
Build the project:
Start the server:
Using the Windows Batch File (Recommended)
To avoid environment variable issues on Windows, use the included batch file:
Build the project first:
Run the batch file:
Alternatively, double-click the run-perplexity-server.bat file in Windows Explorer.
For detailed instructions, see the Windows Setup Guide.
Troubleshooting Windows Issues
Common Issues
Permission Errors
Run Command Prompt or PowerShell as Administrator
Check file permissions in the project directory
Environment Variables
Ensure
.envfile is in the root directoryNo spaces around the
=sign in.envfileRestart terminal after making changes to environment variables
Use the provided batch file to avoid environment variable issues
Node.js Issues
Verify Node.js installation:
node --versionEnsure npm is installed:
npm --version
Error Messages
If you see Error: ENOENT: no such file or directory, ensure:
All paths use correct Windows-style separators
You're in the correct directory
Required files exist
Project Structure
API Usage
The server provides a single tool perplexity_search for web searches:
License
MIT