Skip to main content
Glama

Perplexity MCP Server

Perplexity MCP Server

This is a simple MCP server that allows you to search the web using Perplexity AI.

MCP Review Certified: https://mcpreview.com/mcp-servers/spragginsdesigns/perplexity-mcp-server

Installation

Prerequisites

Steps for Windows

  1. Clone the repository:
git clone [repository-url] cd perplexity-mcp-server
  1. Install dependencies:
npm install
  1. Create environment file:
    • Create a new file named .env in the root directory
    • Add your Perplexity AI API key:
    PERPLEXITY_API_KEY=your_api_key_here

Usage on Windows

Development Mode

npm run dev

Production Mode

  1. Build the project:
npm run build
  1. Start the server:
npm start

To avoid environment variable issues on Windows, use the included batch file:

  1. Build the project first:
npm run build
  1. Run the batch file:
.\run-perplexity-server.bat

Alternatively, double-click the run-perplexity-server.bat file in Windows Explorer.

For detailed instructions, see the Windows Setup Guide.

Troubleshooting Windows Issues

Common Issues

  1. Permission Errors
    • Run Command Prompt or PowerShell as Administrator
    • Check file permissions in the project directory
  2. Environment Variables
    • Ensure .env file is in the root directory
    • No spaces around the = sign in .env file
    • Restart terminal after making changes to environment variables
    • Use the provided batch file to avoid environment variable issues
  3. Node.js Issues
    • Verify Node.js installation: node --version
    • Ensure npm is installed: npm --version

Error Messages

If you see Error: ENOENT: no such file or directory, ensure:

  • All paths use correct Windows-style separators
  • You're in the correct directory
  • Required files exist

Project Structure

perplexity-mcp-server/ ├── src/ │ └── index.ts # Main server implementation ├── dist/ # Compiled output ├── .env # Environment variables ├── package.json # Project configuration ├── run-perplexity-server.bat # Windows batch file └── tsconfig.json # TypeScript configuration

API Usage

The server provides a single tool perplexity_search for web searches:

{ "name": "perplexity_search", "arguments": { "query": "your search query here" } }

License

MIT

Deploy Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

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.

このサーバーは、ユーザーが Perplexity AI を使用して Web 検索を実行できるようにし、シンプルな API インターフェースを通じて検索結果を取得するためのツールを提供します。

  1. インストール
    1. 前提条件
    2. Windowsの場合の手順
  2. Windowsでの使用
    1. 開発モード
    2. 生産モード
    3. Windows バッチファイルの使用(推奨)
  3. Windowsの問題のトラブルシューティング
    1. よくある問題
    2. エラーメッセージ
  4. プロジェクト構造
    1. APIの使用
      1. ライセンス

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.
          Last updated -
          237
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          An MCP server integrating Perplexity AI's API to offer advanced search capabilities with support for multiple models and result configuration.
          Last updated -
          353
          1
          MIT License
        • A
          security
          F
          license
          A
          quality
          This server provides access to the Perplexity AI API, enabling interaction through chatting, searching, and documentation retrieval within MCP-based systems.
          Last updated -
          2
        • A
          security
          F
          license
          A
          quality
          A server that allows AI assistants to perform web searches using Perplexity's sonar-deep-research model with citation support.
          Last updated -
          1
          7

        View all related MCP servers

        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/spragginsdesigns/perplexity-mcp-server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server