Skip to main content
Glama
NasCoder Perplexity MCP Ultra-Pro

NasCoder Perplexity MCP Ultra-Pro

README.md
# NasCoder Perplexity MCP - Ultra Pro 2.0

🧠 **FIXED 2025 EDITION** - Advanced Perplexity AI integration with correct API models and comprehensive features.

## Features

āœ… **Correct 2025 Perplexity API models**
- `sonar-pro` - Advanced reasoning and search
- `sonar` - Standard search model  
- `sonar-deep-research` - Deep research capabilities
- `sonar-reasoning-pro` - Advanced reasoning
- `sonar-reasoning` - Standard reasoning
- `r1-1776` - Specialized model

āœ… **Advanced Capabilities**
- Intelligent caching system
- Rate limiting protection
- Real-time analytics
- Advanced search parameters
- Response formatting options
- Error handling and retry logic

## Installation

```bash
npm install nascoder-perplexity-mcp
```

## Environment Setup

Set your Perplexity API key:

```bash
export PERPLEXITY_API_KEY="YOUR_API_KEY_HERE"
```

## Usage

### Basic Usage

```javascript
// Start the MCP server
node index.js

// Or use with npx
npx nascoder-perplexity-mcp
```

### With MCP Clients

The MCP server integrates seamlessly with various MCP clients. Once configured, you can use it with:

```bash
# Ask a question using Perplexity AI
# Use specific models for different tasks
# Get analytics and performance metrics
```

## Available Tools

### 1. perplexity_ask_pro
Advanced AI-powered search and research with multiple models.

```json
{
  "messages": [{"role": "user", "content": "What is quantum computing?"}],
  "model": "sonar-pro",
  "options": {
    "maxTokens": 2000,
    "temperature": 0.2,
    "searchMode": "academic",
    "returnImages": true
  }
}
```

### 2. perplexity_models
List all available Perplexity models with descriptions.

### 3. perplexity_analytics
Get detailed performance metrics and usage statistics.

### 4. perplexity_cache_clear
Clear the response cache to force fresh API calls.

## MCP Configuration

Add to your MCP client configuration:

```json
{
  "mcpServers": {
    "nascoder-perplexity": {
      "command": "npx",
      "args": ["nascoder-perplexity-mcp"],
      "env": {
        "PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE"
      },
      "timeout": 30000,
      "disabled": false
    }
  }
}
```

## Security

- āœ… No hardcoded API keys
- āœ… Environment variable validation
- āœ… Secure credential handling
- āœ… Rate limiting protection

## Testing

Run real functional tests:

```bash
node test-tools.js
```

## Support

- GitHub: https://github.com/freelancernasimofficial/nascoder-perplexity-mcp
- Issues: https://github.com/freelancernasimofficial/nascoder-perplexity-mcp/issues

Built with ā¤ļø by NasCoder (@freelancernasimofficial)

TDQS

A3.5/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: analytics for metrics, ask_pro for querying, cache_clear for cache management, and models for listing models. There is no overlap in functionality, making it easy for an agent to select the correct tool without confusion.

Naming Consistency5/5

All tool names follow a consistent 'perplexity_' prefix with descriptive suffixes (analytics, ask_pro, cache_clear, models), using snake_case uniformly. This predictable pattern enhances readability and agent usability.

Tool Count5/5

With 4 tools, the server is well-scoped for its purpose of interacting with Perplexity MCP services. Each tool serves a distinct and necessary function, avoiding bloat while covering core operations like querying, analytics, cache management, and model listing.

Completeness4/5

The tool set covers key aspects of the Perplexity MCP domain, including querying (ask_pro), analytics, cache management, and model discovery. A minor gap might be the lack of tools for configuration updates or error handling, but agents can likely work around this with the provided tools.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues