https://github.com/lostmind008/mcp-perplexity-server
Model Context Protocol server implementation for Perplexity API
https://github.com/lostmind008/mcp-perplexity-server
Last synced: 8 days ago
JSON representation
Model Context Protocol server implementation for Perplexity API
- Host: GitHub
- URL: https://github.com/lostmind008/mcp-perplexity-server
- Owner: lostmind008
- Created: 2025-04-01T11:07:14.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-04-01T11:11:29.000Z (7 months ago)
- Last Synced: 2025-04-01T12:24:33.344Z (7 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mcp-servers - **mcp-perplexity-server** - Model Context Protocol server implementation for Perplexity API `javascript` `server` `api` `npm install lostmind008/mcp-perplexity-server` (🌐 Web Development)
README
# MCP Perplexity Server
A Model Context Protocol (MCP) server implementation for the Perplexity API.
## Features
- Supports both Ask and Search modes
- Simple configuration via environment variables
- Direct integration with MCP clients
## Installation
You can use this server directly from GitHub in your MCP configuration:
```json
{
"perplexity-ask": {
"command": "npx",
"args": [
"-y",
"github:lostmind008/mcp-perplexity-server"
],
"env": {
"PERPLEXITY_API_KEY": "your-api-key",
"MCP_SERVER_PORT": "3000",
"MCP_MODE": "ask"
}
},
"perplexity-search": {
"command": "npx",
"args": [
"-y",
"github:lostmind008/mcp-perplexity-server"
],
"env": {
"PERPLEXITY_API_KEY": "your-api-key",
"MCP_SERVER_PORT": "3001",
"MCP_MODE": "search"
}
}
}
```
## Environment Variables
- `PERPLEXITY_API_KEY`: Your Perplexity API key (required)
- `MCP_SERVER_PORT`: Port for the MCP server (default: 3000)
- `MCP_MODE`: Server mode - 'ask' or 'search' (default: 'ask')
## Usage
Once configured, you can use this server with any MCP client by specifying the appropriate server name:
```
perplexity-ask "What is the capital of France?"
perplexity-search "Best programming languages 2025"
```
## License
MIT