MCP Perplexity Server logo

MCP Perplexity Server

by lostmind008

This is a Model Context Protocol (MCP) server implementation for the Perplexity API. It allows you to easily integrate Perplexity's Ask and Search functionalities into MCP-compatible clients.

View on GitHub

Last updated: N/A

What is MCP Perplexity Server?

The MCP Perplexity Server is a bridge between MCP clients and the Perplexity API, enabling users to leverage Perplexity's AI capabilities within their MCP workflows.

How to use MCP Perplexity Server?

Configure the server by setting environment variables such as the Perplexity API key, server port, and mode (ask or search). Then, use the server name in your MCP client commands to query Perplexity. Example: perplexity-ask "What is the capital of France?".

Key features of MCP Perplexity Server

  • Supports Ask mode

  • Supports Search mode

  • Simple configuration via environment variables

  • Direct integration with MCP clients

Use cases of MCP Perplexity Server

  • Answering questions using Perplexity's AI

  • Performing web searches using Perplexity's search engine

  • Integrating AI-powered search and question answering into applications

  • Automating research tasks

FAQ from MCP Perplexity Server

What is the default MCP_MODE?

The default MCP_MODE is 'ask'.

Is a Perplexity API key required?

Yes, a Perplexity API key is required and must be set in the PERPLEXITY_API_KEY environment variable.

What is the default port for the server?

The default port for the server is 3000.

Can I run both 'ask' and 'search' modes simultaneously?

Yes, you can run both modes by configuring separate server instances with different ports and MCP_MODE settings.

What license is the server released under?

The server is released under the MIT license.