perplexity-mcp-serverCertified
The Perplexity MCP Server is a simple Model Context Protocol server that allows users to perform web searches using Perplexity AI.
Perplexity MCP Server
This is a simple MCP server that allows you to search the web using Perplexity AI.
MCP Review Certified: https://mcpreview.com/mcp-servers/spragginsdesigns/perplexity-mcp-server
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:
git clone [repository-url]
cd perplexity-mcp-server
- Install dependencies:
npm install
- 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
- Create a new file named
Usage on Windows
Development Mode
npm run dev
Production Mode
- Build the project:
npm run build
- Start the server:
npm start
Using the Windows Batch File (Recommended)
To avoid environment variable issues on Windows, use the included batch file:
- Build the project first:
npm run build
- 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 .
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
- Use the provided batch file to avoid environment variable issues
- 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
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
Related MCP Servers
View all browser_automation servers āFetch
by modelcontextprotocol
A Model Context Protocol server that provides web content fetching capabilities, enabling LLMs to retrieve and process content from web pages.
markdownify-mcp
by zcaceres
Markdownify is a Model Context Protocol (MCP) server that converts various file types and web content to Markdown format.
mcp-playwright
by executeautomation
A Model Context Protocol server that provides browser automation capabilities using Playwright.
web-eval-agent
by Operative-Sh
operative.sh's MCP Server is a tool for autonomous debugging of web applications directly from your code editor.
cursor-talk-to-figma-mcp
by sonnylazuardi
This project implements a Model Context Protocol (MCP) integration between Cursor AI and Figma, allowing Cursor to communicate with Figma for reading designs and modifying them programmatically.
ai-agent-marketplace-index-mcp
by AI-Agent-Hub
MCP Server for AI Agent Marketplace Index from DeepNLP, allowing AI assistants to search available AI agents by keywords or categories.
playwright-mcp
by microsoft
Playwright MCP is a Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages through structured accessibility snapshots.