Integrations
Used as an HTTP client to communicate with the Perplexity AI API, enabling the server to make requests to Perplexity's endpoints.
Required for running the MCP server, providing the JavaScript runtime environment for the server application.
Used for package management and running the server via scripts defined in the project.
Perplexity AI MCP Server
This repository contains the source code for a Model Context Protocol (MCP) server that provides access to the Perplexity AI API. This server allows users to interact with Perplexity AI through various tools, including chatting, searching, and retrieving documentation.
Purpose
This server simplifies the integration of Perplexity AI into MCP-based systems. It provides a convenient and standardized way to access Perplexity AI's capabilities.
Setup
- Install Node.js and npm: Ensure you have Node.js and npm installed on your system.
- Clone the repository: Clone this repository to your local machine.
- Install dependencies: Navigate to the project directory and run
npm install
. - Configure API Key: Set the
PERPLEXITY_API_KEY
environment variable to your Perplexity API key. - Run the server: Run
npm start
to start the server.
Usage
The server exposes several tools that can be accessed through the MCP system. Refer to the MCP documentation for details on how to use these tools.
Technologies Used
- TypeScript
- @modelcontextprotocol/sdk
- axios
Known Issues
- The Perplexity API may be unreliable. Error handling is included to gracefully handle API failures.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
This server provides access to the Perplexity AI API, enabling interaction through chatting, searching, and documentation retrieval within MCP-based systems.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityEnables integration of Perplexity's AI API with LLMs, delivering advanced chat completion by utilizing specialized prompt templates for tasks like technical documentation, code review, and API documentation.Last updated -1948JavaScriptMIT License
- AsecurityFlicenseAqualityThis server allows users to perform web searches using Perplexity AI, providing a tool for retrieving search results through a simple API interface.Last updated -12TypeScript
- AsecurityAlicenseAqualityAn MCP server integrating Perplexity AI's API to offer advanced search capabilities with support for multiple models and result configuration.Last updated -11JavaScriptMIT License
- AsecurityFlicenseAqualityProvides a standardized way to integrate Perplexity AI's features like chat, search, and documentation access into MCP-based systems.Last updated -5JavaScript