{"id":26501884,"url":"https://github.com/ppl-ai/modelcontextprotocol","last_synced_at":"2025-03-20T17:03:38.583Z","repository":{"id":281726837,"uuid":"946214670","full_name":"ppl-ai/modelcontextprotocol","owner":"ppl-ai","description":"A Model Context Protocol Server connector for Perplexity API, to enable web search without leaving the MCP ecosystem.","archived":false,"fork":false,"pushed_at":"2025-03-10T20:31:37.000Z","size":338,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-10T21:22:46.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppl-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-10T19:44:02.000Z","updated_at":"2025-03-10T20:07:28.000Z","dependencies_parsed_at":"2025-03-10T21:22:48.639Z","dependency_job_id":"69eb65fa-ff4a-435e-9e04-6540b0123cad","html_url":"https://github.com/ppl-ai/modelcontextprotocol","commit_stats":null,"previous_names":["ppl-ai/modelcontextprotocol"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppl-ai%2Fmodelcontextprotocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppl-ai%2Fmodelcontextprotocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppl-ai%2Fmodelcontextprotocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppl-ai%2Fmodelcontextprotocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppl-ai","download_url":"https://codeload.github.com/ppl-ai/modelcontextprotocol/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244656704,"owners_count":20488638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-20T17:01:58.521Z","updated_at":"2025-03-20T17:03:38.557Z","avatar_url":"https://github.com/ppl-ai.png","language":"JavaScript","readme":"# Perplexity Ask MCP Server\n\nAn MCP server implementation that integrates the Sonar API to provide Claude with unparalleled real-time, web-wide research.\n\n![Demo](perplexity-ask/assets/demo_screenshot.png)\n\n\n## Tools\n\n- **perplexity_ask**\n  - Engage in a conversation with the Sonar API for live web searches.\n  - **Inputs:**\n    - `messages` (array): An array of conversation messages.\n      - Each message must include:\n        - `role` (string): The role of the message (e.g., `system`, `user`, `assistant`).\n        - `content` (string): The content of the message.\n\n## Configuration\n\n### Step 1: \n\nClone this repository:\n\n```bash\ngit clone git@github.com:ppl-ai/modelcontextprotocol.git\n```\n\nNavigate to the `perplexity-ask` directory and install the necessary dependencies:\n\n```bash\ncd modelcontextprotocol/perplexity-ask \u0026\u0026 npm install\n```\n\n### Step 2: Get a Sonar API Key\n\n1. Sign up for a [Sonar API account](https://docs.perplexity.ai/guides/getting-started).\n2. Follow the account setup instructions and generate your API key from the developer dashboard.\n3. Set the API key in your environment as `PERPLEXITY_API_KEY`.\n\n### Step 3: Configure Claude Desktop\n\n1. Download Claude desktop [here](https://claude.ai/download). \n\n2. Add this to your `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"perplexity-ask\": {\n      \"command\": \"docker\",\n      \"args\": [\n        \"run\",\n        \"-i\",\n        \"--rm\",\n        \"-e\",\n        \"PERPLEXITY_API_KEY\",\n        \"mcp/perplexity-ask\"\n      ],\n      \"env\": {\n        \"PERPLEXITY_API_KEY\": \"YOUR_API_KEY_HERE\"\n      }\n    }\n  }\n}\n```\n\n### NPX\n\n```json\n{\n  \"mcpServers\": {\n    \"perplexity-ask\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"@modelcontextprotocol/server-perplexity-ask\"\n      ],\n      \"env\": {\n        \"PERPLEXITY_API_KEY\": \"YOUR_API_KEY_HERE\"\n      }\n    }\n  }\n}\n```\n\nYou can access the file using:\n\n```bash\nvim ~/Library/Application\\ Support/Claude/claude_desktop_config.json\n```\n\n### Step 4: Build the Docker Image\n\nDocker build:\n\n```bash\ndocker build -t mcp/perplexity-ask:latest -f perplexity-ask/Dockerfile .\n```\n\n### Step 5: Testing\n\nLet's make sure Claude for Desktop is picking up the two tools we've exposed in our `perplexity-ask` server. You can do this by looking for the hammer icon:\n\n![Claude Visual Tools](perplexity-ask/assets/visual-indicator-mcp-tools.png)\n\nAfter clicking on the hammer icon, you should see the tools that come with the Filesystem MCP Server:\n\n![Available Integration](perplexity-ask/assets/available_tools.png)\n\nIf you see both of these this means that the integration is active. Congratulations! This means Claude can now ask Perplexity. You can then simply use it as you would use the Perplexity web app.  \n\n### Step 6: Advanced parameters\n\nCurrently, the search parameters used are the default ones. You can modify any search parameter in the API call directly in the `index.ts` script. For this, please refer to the official [API documentation](https://docs.perplexity.ai/api-reference/chat-completions).\n\n### Troubleshooting \n\nThe Claude documentation provides an excellent [troubleshooting guide](https://modelcontextprotocol.io/docs/tools/debugging) you can refer to. However, you can still reach out to us at api@perplexity.ai for any additional support or [file a bug](https://github.com/ppl-ai/api-discussion/issues). \n\n\n## License\n\nThis MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.\n\n","funding_links":[],"categories":["🏢 Enterprise-Supported Implementations","Web Search Mcp Servers","MCP 服务器精选列表","JavaScript","Production-Ready Servers","Research \u0026 Data","MCP Servers","Official Servers","官方 MCP 服务器列表","Cloud Services","🌐 Web Development","🗂️ Extensions by Category","Table of Contents"],"sub_categories":["Search \u0026 Data Retrieval","🔍 搜索","Other MCP Servers","🔎 Search","🌐 Web Services","AI Services"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppl-ai%2Fmodelcontextprotocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppl-ai%2Fmodelcontextprotocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppl-ai%2Fmodelcontextprotocol/lists"}