Perplexity MCP Server
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:
Copy
- Install dependencies:
Copy
- Create environment file:
- Create a new file named
.env
in the root directory - Add your Perplexity AI API key:
Copy - Create a new file named
Usage on Windows
Development Mode
Copy
Production Mode
- Build the project:
Copy
- Start the server:
Copy
Troubleshooting Windows Issues
Common Issues
- Permission Errors
- Run Command Prompt or PowerShell as Administrator
- Check file permissions in the project directory
- Environment Variables
- Ensure
.env
file is in the root directory - No spaces around the
=
sign in.env
file - Restart terminal after making changes to environment variables
- Ensure
- Node.js Issues
- Verify Node.js installation:
node --version
- Ensure npm is installed:
npm --version
- Verify Node.js installation:
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
Copy
API Usage
The server provides a single tool perplexity_search
for web searches:
Copy
License
MIT
You must be authenticated.
This server allows users to perform web searches using Perplexity AI, providing a tool for retrieving search results through a simple API interface.