What is Perplexity MCP Server?
The Perplexity MCP Server is a Node.js implementation of Anthropic's Model Context Protocol (MCP) that enables Claude to interact with Perplexity's language models. It provides a secure bridge between Claude and Perplexity AI’s capabilities through tool use.
How to use Perplexity MCP Server?
Install dependencies with npm install, create a .env file with your PERPLEXITY_API_KEY, and build with npm run build. Add the server to Claude Desktop by updating claude_desktop_config.json with the command to run the compiled dist/index.js and the environment variable for the API key.
Key features of Perplexity MCP Server
- Chat completion tool with full message history (
perplexity_chat)
- Simple single‑query tool for quick questions (
perplexity_ask)
- Supports multiple Llama‑3.1‑Sonar models (small, large, huge)
- Environment‑based API key configuration
- Comprehensive error handling and input validation
- Communicates over stdio transport
Use cases of Perplexity MCP Server
- Enhance Claude with real‑time, online‑enabled Perplexity AI models
- Perform quick fact‑checking or summarization via
perplexity_ask
- Build conversational workflows using
perplexity_chat with message history
- Integrate Perplexity’s language capabilities into existing Claude‑based applications
评论