Perplexity MCP Server

Perplexity MCP Server

This server allows users to perform web searches using Perplexity AI, providing a tool for retrieving search results through a simple API interface.

spragginsdesigns

Database Interaction
Visit Server

Tools

perplexity_search

Search the web using Perplexity AI

README

Perplexity MCP Server

This is a simple MCP server that allows you to search the web using Perplexity AI.

Installation

Prerequisites

Steps for Windows

  1. Clone the repository:
git clone [repository-url]
cd perplexity-mcp-server
  1. Install dependencies:
npm install
  1. Create environment file:
    • Create a new file named .env in the root directory
    • Add your Perplexity AI API key:
    PERPLEXITY_API_KEY=your_api_key_here
    

Usage on Windows

Development Mode

npm run dev

Production Mode

  1. Build the project:
npm run build
  1. Start the server:
npm start

Using the Windows Batch File (Recommended)

To avoid environment variable issues on Windows, use the included batch file:

  1. Build the project first:
npm run build
  1. Run the batch file:
.\run-perplexity-server.bat

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

  1. Permission Errors

    • Run Command Prompt or PowerShell as Administrator
    • Check file permissions in the project directory
  2. 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
    • Use the provided batch file to avoid environment variable issues
  3. Node.js Issues

    • Verify Node.js installation: node --version
    • Ensure 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

perplexity-mcp-server/
├── src/
│   └── index.ts          # Main server implementation
├── dist/                 # Compiled output
├── .env                  # Environment variables
├── package.json          # Project configuration
├── run-perplexity-server.bat # Windows batch file
└── tsconfig.json         # TypeScript configuration

API Usage

The server provides a single tool perplexity_search for web searches:

{
  "name": "perplexity_search",
  "arguments": {
    "query": "your search query here"
  }
}

License

MIT

Recommended Servers

Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
AIO-MCP Server

AIO-MCP Server

🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from

Featured
Local
Persistent Knowledge Graph

Persistent Knowledge Graph

An implementation of persistent memory for Claude using a local knowledge graph, allowing the AI to remember information about users across conversations with customizable storage location.

Featured
Local
Hyperbrowser MCP Server

Hyperbrowser MCP Server

Welcome to Hyperbrowser, the Internet for AI. Hyperbrowser is the next-generation platform empowering AI agents and enabling effortless, scalable browser automation. Built specifically for AI developers, it eliminates the headaches of local infrastructure and performance bottlenecks, allowing you to

Featured
Local
Any OpenAI Compatible API Integrations

Any OpenAI Compatible API Integrations

Integrate Claude with Any OpenAI SDK Compatible Chat Completion API - OpenAI, Perplexity, Groq, xAI, PyroPrompts and more.

Featured
Exa MCP

Exa MCP

A Model Context Protocol server that enables AI assistants like Claude to perform real-time web searches using the Exa AI Search API in a safe and controlled manner.

Featured
BigQuery

BigQuery

This is a server that lets your LLMs (like Claude) talk directly to your BigQuery data! Think of it as a friendly translator that sits between your AI assistant and your database, making sure they can chat securely and efficiently.

Featured
Perplexity Chat MCP Server

Perplexity Chat MCP Server

MCP Server for the Perplexity API.

Featured
Web Research Server

Web Research Server

A Model Context Protocol server that enables Claude to perform web research by integrating Google search, extracting webpage content, and capturing screenshots.

Featured