Perplexity
来自Perplexity的搜索API
MCP 工具
Search(搜索)
来自Perplexity的搜索API
参数
Header 参数
Authorization(string, 可选): | 示例值:Bearer {{YOUR_API_KEY}}
Body 参数
query(string, 必需): | 示例值:latest AI developments 2025max_results(integer, 可选): default:10 The maximum number of search results to return.
Required range: 1 <= x <= 20
max_tokens_per_page(integer, 可选): default:1024 Controls the maximum number of tokens retrieved from each webpage during search processing. Higher values provide more comprehensive content extraction but may increase processing time.country(string, 可选): Country code to filter search results by geographic location (e.g., 'US', 'GB', 'DE').
MCP Cline 配置
此服务器需要通过您的 MCP 客户端进行配置。以下是不同环境下的示例:
需要替换你的租户ID和API Key(必需)
API 接口
Search(搜索)
请求信息
Method: POST
Endpoint:
/perplexity/search
请求参数
Header 参数
Authorization(string, 可选): | 示例值:Bearer {{YOUR_API_KEY}}
Body 参数
query(string, 必需): | 示例值:latest AI developments 2025max_results(integer, 可选): default:10 The maximum number of search results to return.
Required range: 1 <= x <= 20
max_tokens_per_page(integer, 可选): default:1024 Controls the maximum number of tokens retrieved from each webpage during search processing. Higher values provide more comprehensive content extraction but may increase processing time.country(string, 可选): Country code to filter search results by geographic location (e.g., 'US', 'GB', 'DE').
返回响应
200 成功
Content-Type:
application/json
请求示例
响应示例
最后更新于