perplexity-deep-mcp
Provides tools to start, check, and list deep research jobs via Perplexity's async API, enabling long-running research tasks that would otherwise time out in MCP clients.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@perplexity-deep-mcpstart deep research on neural networks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
perplexity-deep-mcp
An MCP server that makes Perplexity's Sonar Deep Research usable from MCP clients that enforce a request timeout.
No dependencies. One file. Runs on node server.js.
The problem
Perplexity's sonar-deep-research model runs for two to twenty minutes depending on reasoning effort. MCP clients don't wait that long. Claude Desktop cancels the tool call and returns:
MCP error -32001: Request timed outThe official Perplexity MCP server calls the synchronous /chat/completions endpoint, so deep research is effectively unavailable from inside the client. Raising the timeout doesn't help. The limit lives in the client's bundled MCP SDK, which on a packaged install sits inside a signed application bundle you can't edit. Config keys like timeout and MCP_SERVER_REQUEST_TIMEOUT are ignored.
Perplexity solved this on their side with an async API. This server exposes it.
Related MCP server: MCP Perplexity Pro
How it works
The job is split across three requests that each return in under a second:
pplx_deep_research_start POST /v1/async/sonar submit, get a job id back
pplx_deep_research_check GET /v1/async/sonar/{id} poll status, fetch result
pplx_deep_research_list GET /v1/async/sonar recover ids, see what's runningNothing blocks. Research length stops being a constraint. Results stay retrievable for seven days, so a job started in one conversation can be collected in another.
check takes an optional wait_seconds (max 40). The server holds and polls internally, which cuts the number of round trips without going near the client's limit.
Install
Node 18 or later. Nothing else.
git clone https://github.com/Aakashanil67/perplexity-deep-mcp.gitGet an API key from the Perplexity API portal.
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"perplexity-deep": {
"command": "node",
"args": ["/absolute/path/to/perplexity-deep-mcp/server.js"],
"env": {
"PERPLEXITY_API_KEY": "pplx-your-key-here"
}
}
}
}On Windows, use "C:\\Program Files\\nodejs\\node.exe" as the command if bare node doesn't resolve. Quit the app fully — from the system tray, not just the window — and reopen.
Claude Code
claude mcp add perplexity-deep --env PERPLEXITY_API_KEY="pplx-your-key-here" -- node /absolute/path/to/server.jsEnvironment
Variable | Required | Default |
| yes | — |
| no |
|
Tools
pplx_deep_research_start
Submits a job and returns immediately.
Parameter | Type | Notes |
| string, required | Longer and more structured prompts produce noticeably better reports here |
|
| Default |
|
|
|
|
| |
| string[] | Max 10. Prefix with |
| string |
|
| string | Shapes tone and structure of the report |
pplx_deep_research_check
Parameter | Type | Notes |
| string, required | From |
| number, 0–40 | Hold and poll internally before reporting back |
| boolean | Strips |
Returns the full report with sources and cost once the job reaches COMPLETED. While it's running you get the status and elapsed time. A FAILED job surfaces Perplexity's error message.
pplx_deep_research_list
Optional status and limit. Returns a table of recent jobs.
Known limitation
The async endpoint returns citations: [] and search_results: [] even on jobs that ran many searches, and the model omits inline [n] markers. The synchronous endpoint doesn't have this problem. Verified 25 July 2026 against two jobs that ran eight and four search queries respectively; both came back with empty source arrays. Injecting a system prompt instructing the model to write full URLs into the prose was tried and did not work.
The practical effect is that you get a long, well-organised, unattributed report. That is fine for scoping an unfamiliar topic and not fine for anything you intend to cite.
The server handles this rather than hiding it. If the citation arrays are empty it scans the report body for URLs and lists whatever it finds, labelled as recovered rather than cited. If nothing turns up it says so in plain language at the end of the report. formatCompleted() reads the proper fields first, so if Perplexity ships a fix the correct sources appear with no code change.
This is upstream. There are open reports on the Perplexity community forum describing the same behaviour.
Why there are no dependencies
The MCP TypeScript SDK is the normal way to build one of these. It's a good SDK. It also means a build step, a node_modules tree, and a lockfile to keep current, all to wrap a protocol that is JSON-RPC 2.0 over newline-delimited stdio.
For a server with three tools and two endpoints that trade wasn't worth making. server.js implements the protocol directly: initialize echoes the client's requested version, tools/list returns the schemas, tools/call dispatches, and resources/list and prompts/list return empty rather than erroring, which keeps stricter clients happy. Notifications get no reply. Unknown methods return -32601.
Two details worth knowing if you adapt this:
Everything written to stdout has to be a JSON-RPC frame. A stray console.log corrupts the stream and the client drops the connection with no useful error. All logging here goes to stderr.
The process tracks in-flight requests and won't exit on stdin close while a call is still awaiting the API. Without that guard a closing client can drop a reply that was about to be written.
Errors
Failures return isError: true with a message aimed at whoever has to fix it, not a stack trace. A 401 says the key was rejected. A 404 on a job lookup mentions the seven-day expiry. A 429 says to wait. Network timeouts distinguish themselves from research timeouts, because the two look identical from the client side and the fix is different.
Development
node --check server.jsDrive it by hand over stdio:
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{}}}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \
| PERPLEXITY_API_KEY=your-key node server.jsOr use the official inspector:
npx @modelcontextprotocol/inspector node server.jsCost
Billed by Perplexity per request. Observed on short test jobs: $0.08 for four search queries, $0.13 for eight. Real research runs at high effort cost substantially more. Each result reports its own cost.
License
MIT. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceMCP Server for the Perplexity API.Last updated66MIT
- Alicense-qualityDmaintenanceA comprehensive MCP server that provides intelligent access to Perplexity AI's search and reasoning models with automatic model selection, conversation management, and project-aware storage. Supports real-time search, deep research, chat sessions, and async operations for complex queries.Last updated113MIT
- Alicense-qualityDmaintenanceAn MCP server that connects to OpenRouter's API to provide Perplexity's models (Sonar, Sonar Deep Research, Sonar Reasoning) for use with any MCP-compatible client.Last updated8MIT
- Alicense-qualityDmaintenanceAn MCP server that enables AI agents to perform search-augmented queries and deep multi-source research using the Perplexity API.Last updated4623Apache 2.0
Related MCP Connectors
MCP server for Google search results via SERP API
MCP server for AI dialogue using various LLM models via AceDataCloud
An MCP server for deep research or task groups
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Aakashanil67/perplexity-deep-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server