Skip to main content
Glama
quequiere

perplexity-web-mcp

by quequiere

search

Search the web to get AI-synthesized answers with cited sources for your queries. Provides comprehensive information from multiple sources in one response.

Instructions

Search the web using Perplexity.ai and get an AI-synthesized answer with cited sources. Uses default Perplexity settings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe search query

Implementation Reference

  • src/index.ts:28-40 (registration)
    Tool registration for "search" in src/index.ts using FastMCP.
    mcp.addTool({
      name: "search",
      description:
        "Search the web using Perplexity.ai and get an AI-synthesized answer with cited sources. Uses default Perplexity settings.",
      parameters: z.object({
        query: z.string().describe("The search query"),
      }),
      execute: async ({ query }) => {
        await ensureBrowser();
        const result = await search(query, TIMEOUT_MS);
        return formatResult(result);
      },
    });
  • The handler function for the "search" tool logic.
    export async function search(query: string, timeoutMs: number): Promise<SearchResult> {
      log(`Search: "${query}" (timeout: ${timeoutMs}ms)`);
      return runSearch(query, timeoutMs, null);
    }
Install Server

Other Tools

Latest Blog Posts

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/quequiere/perplexity-web-mcp'

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