Skip to main content
Glama
mkusaka

Perplexity AI MCP Server

by mkusaka

Perplexity AI MCP 服务器

集成 Perplexity AI 的 API 的 MCP 服务器实现,提供具有多种模型选项的高级搜索功能。

特征

  • 使用 Perplexity AI 的模型进行搜索

  • 支持所有官方 Sonar 型号

  • 可配置结果计数

  • 详细的错误处理和日志记录

  • 兼容 MCP Inspector

Related MCP server: PPX-MCP

可用型号

  • sonar-reasoning-pro(127k 上下文)

  • sonar-reasoning(127k 上下文)

  • sonar-pro(200k 上下文)

  • 声纳(127k 上下文)

安装

pnpm install
pnpm build

配置

API 密钥

  1. 注册Perplexity AI 帐户

  2. 从仪表板获取您的 API 密钥

  3. 设置环境变量:

export PERPLEXITY_API_KEY=your_api_key_here

用法

直接执行

node dist/index.js
# or if you made it executable
./dist/index.js

发展

pnpm dev

使用 MCP Inspector 进行测试

pnpm inspect

工具参考

困惑度搜索

使用 Perplexity AI 的模型执行搜索。

参数:

  • query (字符串,必需):搜索查询

  • model (字符串,可选):要使用的模型(默认值:“sonar”)

    • 可用选项:sonar-reasoning-pro、sonar-reasoning、sonar-pro、sonar

  • count (数字,可选):结果数量(1-10,默认值:5)

发展

项目结构

src/perplexity/
├── index.ts        # Main server implementation
├── lib/
│   └── logger.ts   # Logging configuration
└── adr.md         # Architectural decisions

日志记录

日志写入项目根目录中的perplexity-mcp.log

执照

麻省理工学院

贡献

  1. 分叉存储库

  2. 创建你的功能分支

  3. 提交你的更改

  4. 推送到分支

  5. 创建新的 Pull 请求

Install Server
A
license - permissive license
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    An unofficial MCP server for Perplexity AI that leverages Pro subscriptions and browser cookies to enable real-time web searches and model selection without an API key. It provides tools for performing queries, listing available models, and automating the login process to manage authentication.
    4
    12
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that enables AI agents to perform search-augmented queries and deep multi-source research using the Perplexity API.
    42
    25
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • An MCP server that integrates with Discord to provide AI-powered features.

  • Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.

  • MCP server for AI dialogue using various LLM models via AceDataCloud

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mkusaka/mcp-server-perplexity'

If you have feedback or need assistance with the MCP directory API, please join our Discord server