Perplexity Ask OpenRouter MCP server

Perplexity Ask OpenRouter MCP server

perplexity-ask-openrouter•byelct9620

An MCP server that connects to OpenRouter's API to expose Perplexity models for ask, research, and reasoning tasks.

License: MIT License•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Provides three tools: perplexity_ask for general queries, perplexity_research for in-depth research, and perplexity_reason for complex reasoning tasks.
  • •Supports Server-Sent Events and Streamable HTTP transport with a dedicated MCP endpoint.
  • •Uses OpenRouter's API and requires an OPENROUTER_API_KEY environment variable.

BEST FOR

  • •Using Perplexity models through OpenRouter with any MCP-compatible client.
  • •Running via Docker container for easy deployment.

ABOUT PERPLEXITY-ASK-OPENROUTER

Perplexity Ask OpenRouter MCP server is cataloged as an MCP server attributed to elct9620. An MCP server that connects to OpenRouter's API to expose Perplexity models for ask, research, and reasoning tasks. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Perplexity Ask OpenRouter MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which Perplexity models does the server use by default?

It defaults to perplexity/sonar-pro for ask, perplexity/sonar-deep-research for research, and perplexity/sonar-reasoning-pro for reason.

Can individual tools be disabled?

Yes, the ask, research, and reason tools can each be disabled with their own environment variable flags.

Upstream README

View this exact version on GitHub

README.md · a2bdeef17689 · Fetched 2026-11-13 11:40:32 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Perplexity Ask OpenRouter

A Model Context Protocol (MCP) server implementation that makes OpenRouter available for Perplexity Ask.

Overview

This project is inspired by Perplexity Ask and provides an MCP server implementation that connects to OpenRouter's API. It allows you to use Perplexity's models through OpenRouter with any MCP-compatible client.

Features

  • Full implementation of the Model Context Protocol
  • Support for Perplexity's models via OpenRouter:
    • perplexity_ask - Uses Sonar model for general queries
    • perplexity_research - Uses Sonar Deep Research model for in-depth research
    • perplexity_reason - Uses Sonar Reasoning model for complex reasoning tasks
  • Server-Sent Events (SSE) support
  • Streamable HTTP transport implementation
  • Docker containerization for easy deployment

Getting Started

Environment Variables

The server requires the following environment variables:

  • OPENROUTER_API_KEY - Your OpenRouter API key (required)
  • PORT - Port to run the server on (default: 3000)
  • BASE_URL - Custom OpenRouter base URL (optional)
  • ASK_MODEL - Model to use for ask tool (default: perplexity/sonar-pro)
  • RESEARCH_MODEL - Model to use for research tool (default: perplexity/sonar-deep-research)
  • REASON_MODEL - Model to use for reason tool (default: perplexity/sonar-reasoning-pro)
  • DISABLE_ASK - Disable the ask tool (default: false)
  • DISABLE_RESEARCH - Disable the research tool (default: false)
  • DISABLE_REASON - Disable the reason tool (default: false)

Running with Docker

The easiest way to run the server is using Docker:

docker run -p 3000:3000 \
  -e OPENROUTER_API_KEY=your_api_key_here \
  ghcr.io/elct9620/perplexity-ask-openrouter:latest

Building from Source

If you prefer to build from source:

# Clone the repository
git clone https://github.com/elct9620/perplexity-ask-openrouter.git
cd perplexity-ask-openrouter

# Build Docker image
docker build -t perplexity-ask-openrouter .

API Endpoints

The server exposes the following endpoints:

  • /sse - SSE endpoint for establishing a connection
  • /messages - Endpoint for sending messages to an established SSE connection
  • /mcp - Streamable HTTP endpoint implementing the MCP protocol

Usage with MCP Clients

This server implements the Model Context Protocol, so it can be used with any MCP-compatible client. The server supports both SSE and Streamable HTTP transport modes.

Docker Deployment

The project includes a Dockerfile and GitHub Actions workflow for building and publishing the Docker image to GitHub Container Registry (ghcr.io).

License

MIT License

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Perplexity Ask OpenRouter MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/perplexity-ask-openrouter)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent