Perplexity MCP Server
Perplexity MCP 服务器
这是一个简单的 MCP 服务器,允许您使用 Perplexity AI 搜索网络。
安装
先决条件
Node.js 18+(从nodejs.org下载)
Git(从git-scm.com下载)
Perplexity AI API 密钥
Windows 系统步骤
克隆存储库:
git clone [repository-url]
cd perplexity-mcp-server安装依赖项:
npm install创建环境文件:
在根目录中创建一个名为
.env的新文件添加您的 Perplexity AI API 密钥:GXP3
Related MCP server: Tavily MCP Server
在 Windows 上的使用
开发模式
npm run dev生产模式
构建项目:
npm run build启动服务器:
npm start使用 Windows 批处理文件(推荐)
为了避免 Windows 上的环境变量问题,请使用附带的批处理文件:
首先构建项目:
npm run build运行批处理文件:
.\run-perplexity-server.bat或者,双击 Windows 资源管理器中的run-perplexity-server.bat文件。
有关详细说明,请参阅Windows 安装指南。
解决 Windows 问题
常见问题
权限错误
以管理员身份运行命令提示符或 PowerShell
检查项目目录中的文件权限
环境变量
确保
.env文件位于根目录中.env文件中=符号周围没有空格修改环境变量后重启终端
使用提供的批处理文件来避免环境变量问题
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 configurationAPI 使用
该服务器提供了一个用于网络搜索的单一工具perplexity_search :
{
"name": "perplexity_search",
"arguments": {
"query": "your search query here"
}
}执照
麻省理工学院
Available Tools
1 toolperplexity_searchC
Search the web using Perplexity AI
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool has a clear and distinct purpose, making it impossible for an agent to misselect between multiple options.
A single tool inherently has perfect naming consistency, as there are no other tools to compare it against for patterns. The name 'perplexity_search' follows a clear verb_noun format, but consistency cannot be assessed across a set of one.
A single tool is generally too few for most server purposes, as it limits functionality and flexibility. For a web search server, this minimal scope might suffice for basic queries, but it feels thin and lacks auxiliary operations like filtering or advanced search options.
The server's purpose appears to be web search, and the single tool covers the core action of searching. However, there are notable gaps, such as no tools for refining searches, handling different search types (e.g., news, images), or managing search history, which could lead to agent workarounds or limitations.
Maintenance
Related MCP Connectors
Real-time web search, reasoning, and research through Perplexity's API
Enable AI assistants to perform web searches using Perplexity's Sonar Pro.
Web search API and MCP server for developers building AI agents.
Provides AI assistants with access to Seltz's powerful Web Search capabilities.
Related MCP Servers
- AlicenseBqualityDmaintenanceA server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.1311MIT

Tavily MCP Serverofficial
AlicenseAqualityCmaintenanceThis server enables AI systems to integrate with Tavily's search and data extraction tools, providing real-time web information access and domain-specific searches.421,321 npm2,497MIT- FlicenseBqualityNot gradedmaintenanceA server that allows AI assistants to perform web searches using Perplexity's sonar-deep-research model with citation support.111-
- AlicenseNot gradedqualityDmaintenanceA Type 3 DAuth MCP server for Perplexity AI API that provides web search, chat, embeddings, and content moderation using Perplexity's search-focused AI models.MIT