Skip to main content
Glama

Perplexity MCP Server

Perplexity MCP 服务器

这是一个简单的 MCP 服务器,允许您使用 Perplexity AI 搜索网络。

安装

先决条件

Windows 系统步骤

  1. 克隆存储库:
git clone [repository-url] cd perplexity-mcp-server
  1. 安装依赖项:
npm install
  1. 创建环境文件:
    • 在根目录中创建一个名为.env的新文件
    • 添加您的 Perplexity AI API 密钥:GXP3

在 Windows 上的使用

开发模式

npm run dev

生产模式

  1. 构建项目:
npm run build
  1. 启动服务器:
npm start

使用 Windows 批处理文件(推荐)

为了避免 Windows 上的环境变量问题,请使用附带的批处理文件:

  1. 首先构建项目:
npm run build
  1. 运行批处理文件:
.\run-perplexity-server.bat

或者,双击 Windows 资源管理器中的run-perplexity-server.bat文件。

有关详细说明,请参阅Windows 安装指南

解决 Windows 问题

常见问题

  1. 权限错误
    • 以管理员身份运行命令提示符或 PowerShell
    • 检查项目目录中的文件权限
  2. 环境变量
    • 确保.env文件位于根目录中
    • .env文件中=符号周围没有空格
    • 修改环境变量后重启终端
    • 使用提供的批处理文件来避免环境变量问题
  3. Node.js 问题
    • 验证 Node.js 安装: node --version
    • 确保已安装 npm: npm --version

错误消息

如果您看到Error: ENOENT: no such file or directory ,请确保:

  • 所有路径均使用正确的 Windows 样式分隔符
  • 您在正确的目录中
  • 所需文件存在

项目结构

perplexity-mcp-server/ ├── src/ │ └── index.ts # Main server implementation ├── dist/ # Compiled output ├── .env # Environment variables ├── package.json # Project configuration ├── run-perplexity-server.bat # Windows batch file └── tsconfig.json # TypeScript configuration

API 使用

该服务器提供了一个用于网络搜索的单一工具perplexity_search

{ "name": "perplexity_search", "arguments": { "query": "your search query here" } }

执照

麻省理工学院

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

该服务器允许用户使用 Perplexity AI 执行网络搜索,并提供通过简单的 API 接口检索搜索结果的工具。

  1. 安装
    1. 先决条件
    2. Windows 系统步骤
  2. 在 Windows 上的使用
    1. 开发模式
    2. 生产模式
    3. 使用 Windows 批处理文件(推荐)
  3. 解决 Windows 问题
    1. 常见问题
    2. 错误消息
  4. 项目结构
    1. API 使用
      1. 执照

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.
          Last updated -
          1
          94
          Python
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          This server enables AI systems to integrate with Tavily's search and data extraction tools, providing real-time web information access and domain-specific searches.
          Last updated -
          2
          7,482
          537
          JavaScript
          MIT License
          • Apple
          • Linux
        • A
          security
          A
          license
          A
          quality
          Facilitates web search capabilities using Perplexity's API, allowing users to retrieve search results through Claude's interface.
          Last updated -
          1
          2
          JavaScript
          MIT License
        • A
          security
          A
          license
          A
          quality
          An MCP server integrating Perplexity AI's API to offer advanced search capabilities with support for multiple models and result configuration.
          Last updated -
          1
          1
          JavaScript
          MIT License

        View all related MCP servers

        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/spragginsdesigns/perplexity-mcp-server'

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