perplexity
Perplexity AI MCP Server
claude mcp add --transport stdio rileyedwards77-perplexity-mcp-server node server.js \ --env PERPLEXITY_API_KEY="your-perplexity-api-key"
How to use
This MCP server exposes Perplexity AI capabilities through a standardized MCP interface. It offers tools that let you chat with Perplexity, perform searches, and retrieve API documentation or related content via the Perplexity API. To use it, start the server with the configured environment variable containing your Perplexity API key, then call the available MCP tools in your system according to your MCP harness’s tooling conventions. The server acts as a bridge, translating MCP tool invocations into Perplexity API requests and returning structured responses suitable for downstream agents or applications.
How to install
Prerequisites:
- Node.js and npm installed on your machine
- A Perplexity API key
Steps:
-
Clone the repository git clone https://github.com/your-org/perplexity-mcp-server.git cd perplexity-mcp-server
-
Install dependencies npm install
-
Configure the API key
- Create a shell environment variable or set it in a .env file if supported, e.g.: export PERPLEXITY_API_KEY=your-perplexity-api-key
- Alternatively, ensure your runtime environment provides PERPLEXITY_API_KEY
-
Start the server npm start
-
Verify it's running Open http://localhost:PORT (the port is typically defined in your config or defaults) or check the console output for the listening address.
Additional notes
Notes and tips:
- Ensure PERPLEXITY_API_KEY is kept secret and not committed to version control.
- If you encounter intermittent API failures from Perplexity, implement retry logic at the MCP integration level or rely on the server’s built-in error handling.
- Check the server logs for any initialization errors or missing environment variables.
- If you need to change the listening port, adjust your server configuration or the startup script accordingly.
- The MCP tools exposed by this server align with the MCP SDK conventions; consult your MCP host documentation for invoking tools and handling responses.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.