MCP.so
登录

MCP Perplexity Server

@sibbl

基本信息

分类

AI 与智能体

许可证

MIT

传输方式

stdio

作者

sibbl

关于 MCP Perplexity Server

A MCP Perplexity API server written in Typescript with stdio and SSE transport support.

#mcp-perplexity-api#api-server#typescript

MCP Perplexity Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-perplexity-api": {
      "command": "docker",
      "args": [
        "compose",
        "up"
      ]
    }
  }
}

MCP Perplexity Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Perplexity Server?

MCP Perplexity Server provides an API to ask questions to a model behind the Perplexity API, wrapped in the Model Context Protocol (MCP). It is intended for developers who want to integrate Perplexity AI’s conversational search into MCP‑compatible applications.

How to use MCP Perplexity Server?

Set up the server via Docker (docker compose up) or Node.js (pnpm install && pnpm start after setting environment variables). You must configure MCP_PERPLEXITY_API_KEY with your Perplexity API key. The server runs on stdio (default) or SSE transport; for SSE, the endpoint is http://localhost:8080/sse by default.

Key features of MCP Perplexity Server

  • Provides MCP‑compatible API for Perplexity AI models
  • Supports both stdio and SSE transport protocols
  • Configurable default model and model list
  • Optional bearer authentication for SSE endpoints
  • Easy deployment via Docker Compose or Node.js

Use cases of MCP Perplexity Server

  • Integrate Perplexity’s conversational search into MCP‑based AI assistants
  • Build a question‑answering tool that uses Perplexity’s up‑to‑date web knowledge
  • Run a local MCP server that proxies queries to Perplexity for MCP clients

常见问题

1

Do I need a Perplexity API key?

Yes, the `MCP_PERPLEXITY_API_KEY` environment variable is required and must contain your Perplexity API key.

2

What transport methods are supported?

The server supports stdio (default) and SSE transport, configured by the `MCP_TRANSPORT` variable.

3

How can I run the server?

You can run it using Docker Compose with the provided `docker-compose.yml` or directly via Node.js with `pnpm install && pnpm start`.

4

What models are available?

The default model is `sonar-pro`; you can set a comma‑separated list of models via `MCP_PERPLEXITY_MODELS` (default: `sonar,sonar-pro`).

5

Is authentication required for SSE?

No, but you can enable optional bearer authentication by setting `MCP_SSE_AUTH_HEADER_VALUE` to a token.

评论

AI 与智能体 分类下的更多 MCP 服务器