# Mcp Server Perplexity

> MCP server from mkusaka/mcp-server-perplexity.

- **Type:** MCP server
- **Install:** `agentstack add mcp-mkusaka-mcp-server-perplexity`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [mkusaka](https://agentstack.voostack.com/s/mkusaka)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [mkusaka](https://github.com/mkusaka)
- **Source:** https://github.com/mkusaka/mcp-server-perplexity

## Install

```sh
agentstack add mcp-mkusaka-mcp-server-perplexity
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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

```bash
pnpm install
pnpm build
```

## Configuration

### API Key
1. Sign up for a [Perplexity AI account](https://www.perplexity.ai)
2. Get your API key from the dashboard
3. Set the environment variable:
```bash
export PERPLEXITY_API_KEY=your_api_key_here
```

## Usage

### Direct Execution
```bash
node dist/index.js
# or if you made it executable
./dist/index.js
```

### Development
```bash
pnpm dev
```

### Testing with MCP Inspector
```bash
pnpm inspect
```

## Tool Reference

### perplexity_search

Performs a search using Perplexity AI's models.

Parameters:
- `query` (string, required): The search query
- `model` (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

1. Fork the repository
2. Create your feature branch
3. Commit your changes
4. Push to the branch
5. Create a new Pull Request

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [mkusaka](https://github.com/mkusaka)
- **Source:** [mkusaka/mcp-server-perplexity](https://github.com/mkusaka/mcp-server-perplexity)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-mkusaka-mcp-server-perplexity
- Seller: https://agentstack.voostack.com/s/mkusaka
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
