Perplexity Ai MCP server

Connect Perplexity Ai to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Perplexity Ai MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the agent completion tool in Perplexity Ai
  • Use the sonar chat completion tool in Perplexity Ai
  • Use the web search tool in Perplexity Ai
  • Use the generate embeddings tool in Perplexity Ai

Supported Tools

agent_completion

Agent Completion

Execute agentic AI workflows through Perplexity's Agent API, which provides unified access to models from OpenAI, Anthropic, Google, xAI, NVIDIA, and Perplexity through a single request. Supports built-in tools (web search, URL fetching), model fallback chains, and pre-configured **presets** for common use cases: - **fast-search** - Quick factual lookups (xAI Grok, 1 step) - **pro-search** - Balanced research (GPT-5.1, 3 steps) - **deep-research** - Multi-source analysis (GPT-5.2, 10 steps) - **advanced-deep-research** - Expert research (Claude Opus, 10 steps) You can use presets as-is or override any parameter. Models use the `provider/model-name` format (e.g., `openai/gpt-5.4`, `anthropic/claude-sonnet-4-6`).

chat_completion

Sonar Chat Completion

Generate AI responses grounded in real-time web search using Perplexity's Sonar models. Responses include inline citations to web sources, making it ideal for factual queries, research summaries, and question answering. Available models: - **sonar** - Lightweight, fast search model for quick queries - **sonar-pro** - Advanced model with multi-step queries and ~2x more citations - **sonar-reasoning-pro** - Chain-of-thought reasoning for complex analysis - **sonar-deep-research** - Expert-level exhaustive research and reports Supports search filters (domain, recency, language), structured JSON output, and optional image/related question retrieval.

generate_embeddings

Generate Embeddings

Generate vector embeddings for text using Perplexity's pplx-embed models. Useful for semantic search, clustering, retrieval-augmented generation (RAG), and recommendation systems. Available models: - **pplx-embed-v1-0.6b** - Lightweight, low-latency (1024 dimensions) - **pplx-embed-v1-4b** - Higher quality retrieval (2560 dimensions) - **pplx-embed-context-v1-0.6b** - Contextualized, lightweight (1024 dimensions) - **pplx-embed-context-v1-4b** - Contextualized, higher quality (2560 dimensions) Standard models are best for independent texts and search queries. Contextualized models are optimized for document chunks that benefit from surrounding context. All models produce INT8-quantized embeddings natively.

Connect Perplexity Ai to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Perplexity Ai in Metorial. In your Metorial portal, enable the Perplexity Ai MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Perplexity Ai tools.

Run Perplexity Ai through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Perplexity Ai and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Perplexity Ai tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Perplexity Ai

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Airtable

Create, read, update, and delete records in Airtable bases and tables. Manage base schemas including creating tables and fields. Filter records using formulas, sort by fields, and scope queries to specific views. Upsert records to find, create, or update in a single call. Upload attachments to records, read and write record comments, list accessible bases, and receive real-time base change events through webhooks.

Sentry

Track, manage, and resolve application errors and performance issues. List, query, and bulk-update issues and error events with filters like status, assignment, and tags. Create and manage releases, associate commits, and upload source maps. Configure issue alert rules and metric alert rules with notification actions. Set up cron monitors to detect missed or failed scheduled jobs. Build custom dashboards with configurable widgets. Run ad-hoc Discover queries across errors and transactions for performance analysis. Manage organizations, teams, projects, and members. Provision users via SCIM. Access session replay data.

Bitbucket

Manage Git repositories, pull requests, and CI/CD pipelines on Bitbucket Cloud. Create, fork, and configure repositories within workspaces and projects. Create, review, approve, merge, and decline pull requests with inline code comments. Browse source code, list commits, and manage branches and tags. Trigger, monitor, and manage Bitbucket Pipelines. List workspace members, configure repository default reviewers and branch restrictions, create and manage repository webhooks, and search code across repositories.

Technical notes for Perplexity Ai

Perform AI-powered web searches and generate grounded answers with citations. Access multiple LLM providers (OpenAI, Anthropic, Google, xAI, Sonar) through a unified chat completions interface. Retrieve raw ranked web search results for RAG pipelines. Generate text embeddings for semantic search and retrieval. Supports streaming responses, structured JSON output, search recency and domain filtering, multi-step reasoning, deep research reports, model fallback, and configurable presets for common workflows. Manage API keys and groups programmatically.

Frequently asked questions

Common questions about connecting Perplexity Ai to AI agents with Metorial.

  1. How many tools does the Perplexity Ai MCP server have?
    The Perplexity Ai MCP server exposes 4 tools, including Agent Completion, Sonar Chat Completion, Web Search. Each one is governed and traced through Metorial.
  2. Perplexity Ai exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Perplexity Ai MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Perplexity Ai and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Perplexity Ai MCP server yourself or use the hosted gateway.

Connect Perplexity Ai to production AI agents

See how Metorial gives your team governed access to Perplexity Ai, with tracing and security controls built in.