{"_id":"perplexity-mcp","_rev":"5-15b94687d09fbc46db0279f60fdd020b","name":"perplexity-mcp","dist-tags":{"latest":"0.2.3"},"versions":{"0.1.0":{"name":"perplexity-mcp","version":"0.1.0","keywords":["mcp","perplexity","ai","research","documentation","deep-research","model-context-protocol"],"author":{"name":"MCP Contributors"},"license":"MIT","_id":"perplexity-mcp@0.1.0","maintainers":[{"name":"dainfernal","email":"dattasumit2019@gmail.com"}],"homepage":"https://github.com/DaInfernalCoder/researcher-mcp#readme","bugs":{"url":"https://github.com/DaInfernalCoder/researcher-mcp/issues"},"bin":{"perplexity-mcp":"build/index.js"},"dist":{"shasum":"22f17a6cb79f74424b929c22601a6737df253c68","tarball":"https://registry.npmjs.org/perplexity-mcp/-/perplexity-mcp-0.1.0.tgz","fileCount":13,"integrity":"sha512-4fRtusMWIpVXvEcnCsTyHYs02pW2M1+GDIR/d433oA8+wvISglWGNLHEuMPEJEFz89XtPk8c8EjktD3Ihof7Dg==","signatures":[{"sig":"MEQCICzIv5v8RLY1eYmnWuk0YFmD45k0dCyy2ZDpDyA6YOSJAiBy7gnum8aeyhZvgwCaQXuUSdoOXvnNoOfuqFAKaaGQeg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55822},"type":"module","gitHead":"191898b44cb9ca1198da6221fac17bd98988bcd7","scripts":{"test":"tsc --noEmit","build":"tsc && chmod +x build/index.js","start":"node build/index.js","watch":"tsc --watch","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"_npmUser":{"name":"dainfernal","email":"dattasumit2019@gmail.com"},"repository":{"url":"git+https://github.com/DaInfernalCoder/researcher-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server that calls upon Perplexity API to get docs, find APIs, check deprecated code, and perform deep research while you code","directories":{},"_nodeVersion":"23.9.0","dependencies":{"axios":"^1.7.9","better-sqlite3":"^11.8.1","@modelcontextprotocol/sdk":"0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/perplexity-mcp_0.1.0_1743807836985_0.3229953820310063","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"perplexity-mcp","version":"0.2.0","keywords":["mcp","perplexity","ai","search","reasoning","research","sonar-pro","sonar-reasoning-pro","sonar-deep-research","model-context-protocol"],"author":{"name":"MCP Contributors"},"license":"MIT","_id":"perplexity-mcp@0.2.0","maintainers":[{"name":"dainfernal","email":"dattasumit2019@gmail.com"}],"homepage":"https://github.com/DaInfernalCoder/researcher-mcp#readme","bugs":{"url":"https://github.com/DaInfernalCoder/researcher-mcp/issues"},"bin":{"perplexity-mcp":"build/index.js"},"dist":{"shasum":"6c124d76c9219292d05e63b9c7ee4b411bbd81f6","tarball":"https://registry.npmjs.org/perplexity-mcp/-/perplexity-mcp-0.2.0.tgz","fileCount":13,"integrity":"sha512-wAjIqnvcHasVSjchPuV2Z7HLU9o/NgtniWWCTml+IeNLCfW3z+YO/LuIpVMdxiWnOGT1cks7TtlSDwlRWy0TMA==","signatures":[{"sig":"MEQCIFZb68TpgO0aduQeL53lxoD523kd3cZXj3T8vuGWxKqJAiBlMIUicFf8QjEKyehFrzVpQg5HuZ400esz/4HG7/Wumg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35519},"type":"module","gitHead":"191898b44cb9ca1198da6221fac17bd98988bcd7","scripts":{"test":"tsc --noEmit","build":"tsc && chmod +x build/index.js","start":"node build/index.js","watch":"tsc --watch","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"_npmUser":{"name":"dainfernal","email":"dattasumit2019@gmail.com"},"repository":{"url":"git+https://github.com/DaInfernalCoder/researcher-mcp.git","type":"git"},"_npmVersion":"10.9.2","description":"MCP server providing intelligent search, reasoning, and research capabilities powered by Perplexity's specialized AI models","directories":{},"_nodeVersion":"23.9.0","dependencies":{"axios":"^1.7.9","better-sqlite3":"^11.8.1","@modelcontextprotocol/sdk":"0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24","@types/better-sqlite3":"^7.6.12"},"_npmOperationalInternal":{"tmp":"tmp/perplexity-mcp_0.2.0_1743810426981_0.14636771494348588","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"perplexity-mcp","version":"0.2.1","keywords":["mcp","perplexity","ai","search","reasoning","research","sonar-pro","sonar-reasoning-pro","sonar-deep-research","model-context-protocol"],"author":{"name":"MCP Contributors"},"license":"MIT","_id":"perplexity-mcp@0.2.1","maintainers":[{"name":"dainfernal","email":"dattasumit2019@gmail.com"}],"homepage":"https://github.com/DaInfernalCoder/researcher-mcp#readme","bugs":{"url":"https://github.com/DaInfernalCoder/researcher-mcp/issues"},"bin":{"perplexity-mcp":"build/index.js"},"dist":{"shasum":"e5e7aea04e5c8ad765c64d6bfa8dba17cf69bbf4","tarball":"https://registry.npmjs.org/perplexity-mcp/-/perplexity-mcp-0.2.1.tgz","fileCount":4,"integrity":"sha512-f0sGVOnwo3/0nXAXdyr+HNJxaxCFfyhwW0q27iFlZVfNF1oqsrmDR+ayNLGoLuExa4R/BdCiAbaMqChsA80XoQ==","signatures":[{"sig":"MEUCICUjaPqBChswVNw7qES5HQarVJ11OUxNlfNMKOxw1N5PAiEA81nnqmE2V/c/h9WH8YSbl9BY61UnuCWkLJKYk1O3oPY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23770},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"61fda836f75164f83d30792acf04e791c44754a3","scripts":{"test":"tsc --noEmit","build":"tsc && chmod +x build/index.js","start":"node build/index.js","watch":"tsc --watch","inspector":"npx @modelcontextprotocol/inspector build/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"dainfernal","email":"dattasumit2019@gmail.com"},"repository":{"url":"git+https://github.com/DaInfernalCoder/researcher-mcp.git","type":"git"},"_npmVersion":"11.4.1","description":"MCP server providing intelligent search, reasoning, and research capabilities powered by Perplexity's specialized AI models","directories":{},"_nodeVersion":"23.11.0","dependencies":{"axios":"^1.7.9","dotenv":"^17.2.3","minimist":"^1.2.8","@modelcontextprotocol/sdk":"0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.19.19","@types/minimist":"^1.2.5"},"_npmOperationalInternal":{"tmp":"tmp/perplexity-mcp_0.2.1_1762024037620_0.7318460943676102","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"perplexity-mcp","version":"0.2.2","keywords":["mcp","perplexity","ai","search","reasoning","research","sonar-pro","sonar-reasoning-pro","sonar-deep-research","model-context-protocol"],"author":{"name":"MCP Contributors"},"license":"MIT","_id":"perplexity-mcp@0.2.2","maintainers":[{"name":"dainfernal","email":"dattasumit2019@gmail.com"}],"homepage":"https://github.com/DaInfernalCoder/researcher-mcp#readme","bugs":{"url":"https://github.com/DaInfernalCoder/researcher-mcp/issues"},"bin":{"perplexity-mcp":"build/index.js"},"dist":{"shasum":"8f2e95d1af3ad94e35501334a51afeca7e4ebcdb","tarball":"https://registry.npmjs.org/perplexity-mcp/-/perplexity-mcp-0.2.2.tgz","fileCount":4,"integrity":"sha512-cMBRgRTPcsn+u6ih/KFyBaKCFbKMpWr1HQa5NGV8a2eGL9xw2f8/yHbwQUp9YgjkFlEkjNNHybCNTu64aQpvLg==","signatures":[{"sig":"MEQCICS73t5PIrgqSLAe/z+hWtNEwUzQuzDlmlDepUcKLwCDAiBHLt4TWe3Rzg+9A+KqxVwpCaMibXE8CbZ3R7yNceaJGw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26690},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"bb53e9956f915657a0a18eee5d147b0488f32be2","scripts":{"test":"tsc --noEmit","build":"tsc && chmod +x build/index.js","start":"node build/index.js","watch":"tsc --watch","inspector":"npx @modelcontextprotocol/inspector build/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"dainfernal","email":"dattasumit2019@gmail.com"},"repository":{"url":"git+https://github.com/DaInfernalCoder/researcher-mcp.git","type":"git"},"_npmVersion":"11.4.1","description":"MCP server providing intelligent search, reasoning, and research capabilities powered by Perplexity's specialized AI models","directories":{},"_nodeVersion":"23.11.0","dependencies":{"axios":"^1.7.9","dotenv":"^17.2.3","minimist":"^1.2.8","@modelcontextprotocol/sdk":"0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.19.19","@types/minimist":"^1.2.5"},"_npmOperationalInternal":{"tmp":"tmp/perplexity-mcp_0.2.2_1762024664071_0.13743513784816908","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"perplexity-mcp","version":"0.2.3","description":"MCP server providing intelligent search, reasoning, and research capabilities powered by Perplexity's specialized AI models","type":"module","bin":{"perplexity-mcp":"build/index.js"},"scripts":{"build":"tsc && chmod +x build/index.js","watch":"tsc --watch","start":"node build/index.js","inspector":"npx @modelcontextprotocol/inspector build/index.js","test":"tsc --noEmit","prepublishOnly":"npm run build"},"dependencies":{"@modelcontextprotocol/sdk":"0.6.0","axios":"^1.7.9","dotenv":"^17.2.3","minimist":"^1.2.8"},"devDependencies":{"@types/minimist":"^1.2.5","@types/node":"^20.19.19","typescript":"^5.3.3"},"keywords":["mcp","perplexity","ai","search","reasoning","research","sonar-pro","sonar-reasoning-pro","sonar-deep-research","model-context-protocol"],"author":{"name":"MCP Contributors"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/DaInfernalCoder/researcher-mcp.git"},"engines":{"node":">=18.0.0"},"_id":"perplexity-mcp@0.2.3","gitHead":"f4f730c311daa4014bb5075776ad9347bf67c491","bugs":{"url":"https://github.com/DaInfernalCoder/researcher-mcp/issues"},"homepage":"https://github.com/DaInfernalCoder/researcher-mcp#readme","_nodeVersion":"23.11.0","_npmVersion":"11.4.1","dist":{"integrity":"sha512-B+2jrWU1yx5bmQPoBrXYKv6lGFEkYvsaIylz+w2ITAyzrsgJrI+vUNiNeUkLgcKW/xf8c/en9mX65wACmjYh1Q==","shasum":"2544b727138e5b291709c7c876ae062bd4e19c70","tarball":"https://registry.npmjs.org/perplexity-mcp/-/perplexity-mcp-0.2.3.tgz","fileCount":4,"unpackedSize":26996,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICUnXt3AFJzSnGtH50Y2pKS09hUKZtwCYuEM7flqgDtnAiA81bVEAqe9D0lZ76GXHB0KynReorSs2ynzlb9AxzJ0iQ=="}]},"_npmUser":{"name":"dainfernal","email":"dattasumit2019@gmail.com"},"directories":{},"maintainers":[{"name":"dainfernal","email":"dattasumit2019@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/perplexity-mcp_0.2.3_1762025798059_0.8852781737569138"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-04T23:03:56.984Z","modified":"2025-11-01T19:36:38.468Z","0.1.0":"2025-04-04T23:03:57.186Z","0.2.0":"2025-04-04T23:47:07.191Z","0.2.1":"2025-11-01T19:07:17.812Z","0.2.2":"2025-11-01T19:17:44.259Z","0.2.3":"2025-11-01T19:36:38.258Z"},"bugs":{"url":"https://github.com/DaInfernalCoder/researcher-mcp/issues"},"author":{"name":"MCP Contributors"},"license":"MIT","homepage":"https://github.com/DaInfernalCoder/researcher-mcp#readme","keywords":["mcp","perplexity","ai","search","reasoning","research","sonar-pro","sonar-reasoning-pro","sonar-deep-research","model-context-protocol"],"repository":{"type":"git","url":"git+https://github.com/DaInfernalCoder/researcher-mcp.git"},"description":"MCP server providing intelligent search, reasoning, and research capabilities powered by Perplexity's specialized AI models","maintainers":[{"name":"dainfernal","email":"dattasumit2019@gmail.com"}],"readme":"# Perplexity MCP Server\n\nAn intelligent research assistant powered by Perplexity's specialized AI models. Features automatic query complexity detection to route requests to the most appropriate model for optimal results. Unlike the Official server, it has search capabilities FOR EVERY TASK, essentially \n\nIt also forces the agent using the MCP to be specific\n\n## Tools\n\n### 1. Search (Sonar Pro)\nQuick search for simple queries and basic information lookup. Best for straightforward questions that need concise, direct answers.\n\n```javascript\nconst result = await use_mcp_tool({\n  server_name: \"perplexity\",\n  tool_name: \"search\",\n  arguments: {\n    query: \"What is the capital of France?\",\n    force_model: false // Optional: force using this model even if query seems complex\n  }\n});\n```\n\n### 2. Reason (Sonar Reasoning Pro)\nHandles complex, multi-step tasks requiring detailed analysis. Perfect for explanations, comparisons, and problem-solving.\n\n```javascript\nconst result = await use_mcp_tool({\n  server_name: \"perplexity\",\n  tool_name: \"reason\",\n  arguments: {\n    query: \"Compare and contrast REST and GraphQL APIs, explaining their pros and cons\",\n    force_model: false // Optional: force using this model even if query seems simple\n  }\n});\n```\n\n### 3. Deep Research (Sonar Deep Research)\nConducts comprehensive research and generates detailed reports. Ideal for in-depth analysis of complex topics.\n\n```javascript\nconst result = await use_mcp_tool({\n  server_name: \"perplexity\",\n  tool_name: \"deep_research\",\n  arguments: {\n    query: \"The impact of quantum computing on cryptography\",\n    focus_areas: [\n      \"Post-quantum cryptographic algorithms\",\n      \"Timeline for quantum threats\",\n      \"Practical mitigation strategies\"\n    ],\n    force_model: false // Optional: force using this model even if query seems simple\n  }\n});\n```\n\n\n## Setup\n\n1. **Prerequisites**\n   - Node.js (from [nodejs.org](https://nodejs.org))\n   - Perplexity API key (from [perplexity.ai/settings/api](https://www.perplexity.ai/settings/api))\n   - clone the repo somewhere\n\n2. **Configure MCP Settings**\n\nAdd to your MCP settings file (location varies by platform):\n\n```json\n{\n  \"mcpServers\": {\n    \"perplexity\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/perplexity-server/build/index.js\"],\n      \"env\": {\n        \"PERPLEXITY_API_KEY\": \"YOUR_API_KEY_HERE\"\n      },\n      \"disabled\": false,\n      \"autoApprove\": []\n    }\n  }\n}\n```\n\n\nOr use NPX to not have to install it locally (recommended for macos): \n\n```json\n{\n  \"mcpServers\": {\n    \"perplexity\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"perplexity-mcp\"\n      ],\n      \"env\": {\n        \"PERPLEXITY_API_KEY\": \"your_api_key\"\n      }\n    }\n  }\n}\n```\nIn case the MCP Client is not able to parse the Perplexity API Key from the\nenvironment using methods like `\"${env:PERPLEXITY_API_KEY}\"` common in modern\nAI Coding Agents (e.g. Kiro), there are two fallback solutions:\n\n**Command-Line Argument**: Pass the API key directly as a command-line argument, and you can even try to see whether \"${env:PERPLEXITY_API_KEY}\" works in there.\n\n```json\n{\n  \"mcpServers\": {\n    \"perplexity\": {\n      \"command\": \"node\",\n      \"args\": [\n        \"/path/to/perplexity-server/build/index.js\",\n        \"--api-key\",\n        \"your_api_key_here\"\n      ],\n      \"disabled\": false,\n      \"autoApprove\": []\n    }\n  }\n}\n```\n\n**Read an explicit `.env` File**: specify the location of the project `.env` file with the environment variables and API keys for your current project with the `--cwd` command-line argument, and the MCP Server will read the `.env` file from the directory finding the Perplexity API Key from there.\n\n```json\n{\n  \"mcpServers\": {\n    \"perplexity\": {\n      \"command\": \"node\",\n      \"args\": [\n        \"/path/to/perplexity-server/build/index.js\",\n        \"--cwd\",\n        \"/path/to/your/project\"\n      ],\n      \"disabled\": false,\n      \"autoApprove\": []\n    }\n  }\n}\n```\n**Priority Order**: Command-line argument > Environment variable > .env file with `--cwd` (path needed)\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=DaInfernalCoder/perplexity-mcp&type=Timeline)](https://www.star-history.com/#DaInfernalCoder/perplexity-mcp&Timeline)\n","readmeFilename":"README.md"}