Perplexity AI 搜索
STDIO集成Perplexity AI搜索接口的MCP服务器
集成Perplexity AI搜索接口的MCP服务器
An MCP server implementation that integrates Perplexity AI's API, providing advanced search capabilities with multiple model options.
pnpm install pnpm build
export PERPLEXITY_API_KEY=your_api_key_here
node dist/index.js # or if you made it executable ./dist/index.js
pnpm dev
pnpm inspect
Performs a search using Perplexity AI's models.
Parameters:
query
(string, required): The search querymodel
(string, optional): Model to use (default: "sonar")
count
(number, optional): Number of results (1-10, default: 5)src/perplexity/
├── index.ts # Main server implementation
├── lib/
│ └── logger.ts # Logging configuration
└── adr.md # Architectural decisions
Logs are written to perplexity-mcp.log
in the project root directory.
MIT