The official TypeScript library for the Perplexity API
The official TypeScript library for the Perplexity API
This library provides convenient access to the Perplexity REST API from server-side TypeScript or JavaScript.
TypeScript >= 5.0 is supported.
Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
{
"mcpServers": {
"perplexity-ai": {
"command": "npx",
"args": ["-y", "@perplexity-ai/perplexity_ai"],
"env": {
"PERPLEXITY_API_KEY": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
TypeScript >= 5.0 is supported.
| Variable | Description | Required |
|---|---|---|
| PERPLEXITY_API_KEY | Credential the server authenticates with. | Yes |
Retrieve public web pages as readable Markdown with the reference Fetch MCP server, including pagination for longer responses.
Use Firecrawl MCP to retrieve website content and extract information for research through Firecrawl’s API-backed web tools.
Convert HTML to clean markdown locally. No network and no key.
Strips 85-97% of HTML bloat into clean Markdown, <200-token skeletons, or BM25 excerpts via MCP.
Scrape, crawl, map & search the web. Open-source, self-hostable Rust crawler & search for AI agents.
While LLM apps can access web search tools with MCP, **GPT Researcher MCP delivers deep research results.** Standard search tools return raw results