
Perplexity AI MCP Server
Integrate advanced search capabilities using Perplexity AI's models. Perform searches with configurable result counts and detailed error handling.
Installation
Installing for Claude Desktop
Option 1: One-Command Installation
npx mcpbar@latest install mkusaka/mcp-server-perplexity -c claude
This command will automatically install and configure the Perplexity AI MCP Server MCP server for your selected client.
Option 2: Manual Configuration
Run the command below to open your configuration file:
npx mcpbar@latest edit -c claude
After opening your configuration file, copy and paste this configuration:
View JSON configuration
{
"mcpServers": {
"Perplexity AI MCP Server": {
"command": "npx",
"args": [
"-y",
"perplexity-mcp"
],
"env": {
"PERPLEXITY_API_KEY": "${input:perplexity_api_key}"
}
}
}
}
Perplexity AI MCP Server
An MCP server implementation that integrates Perplexity AI's API, providing advanced search capabilities with multiple model options.
Features
- Search using Perplexity AI's models
- Support for all official Sonar models
- Configurable result count
- Detailed error handling and logging
- MCP Inspector compatible
Available Models
- sonar-reasoning-pro (127k context)
- sonar-reasoning (127k context)
- sonar-pro (200k context)
- sonar (127k context)
Installation
pnpm install
pnpm build
Configuration
API Key
- Sign up for a Perplexity AI account
- Get your API key from the dashboard
- Set the environment variable:
export PERPLEXITY_API_KEY=your_api_key_here
Usage
Direct Execution
node dist/index.js
# or if you made it executable
./dist/index.js
Development
pnpm dev
Testing with MCP Inspector
pnpm inspect
Tool Reference
perplexity_search
Performs a search using Perplexity AI's models.
Parameters:
query
(string, required): The search querymodel
(string, optional): Model to use (default: "sonar")- Available options: sonar-reasoning-pro, sonar-reasoning, sonar-pro, sonar
count
(number, optional): Number of results (1-10, default: 5)
Development
Project Structure
src/perplexity/
├── index.ts # Main server implementation
├── lib/
│ └── logger.ts # Logging configuration
└── adr.md # Architectural decisions
Logging
Logs are written to perplexity-mcp.log
in the project root directory.
License
MIT
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
Details:
Stars
1Forks
5Last commit
5 months agoRepository age
5 monthsLicense
MIT
Auto-fetched from GitHub .
MCP servers similar to Perplexity AI MCP Server:

Stars
Forks
Last commit

Stars
Forks
Last commit

Stars
Forks
Last commit