MCP

    MCP

    Desearch MCP is available over hosted Streamable HTTP. Create an API key in Console, then add the server in your agent.

    Endpoint: https://mcp.desearch.ai/mcp
    Auth for tool calls: Authorization: <DESEARCH_API_KEY> (raw key, as in the examples below). Authorization: Bearer <DESEARCH_API_KEY> and x-api-key: <DESEARCH_API_KEY> also work.

    Discovery without a key is allowed: initialize and tools/list return successfully with no API key. Calling a tool (tools/call) without a key returns an unauthorized error (isError: true; HTTP 401 on a direct request). Send a key with tools/call.

    Connect with OAuth (remote connector)

    The remote connector URL is https://mcp.desearch.ai/mcp.

    MCP clients that support OAuth can connect to that URL and sign in through OAuth. On the Desearch sign-in page you paste your Desearch API key, which you get from https://console.desearch.ai/api-keys.

    Sending the API key directly still works: in the Authorization header as the raw key or as Bearer <key>, or in the x-api-key header.

    Choose your client

    ClientTransportNotes
    Claude CodeHosted HTTPCLI add with HTTP transport
    CursorHosted HTTPmcp.json url + headers
    VS CodeHosted HTTPuse servers key (not mcpServers)
    Claude DesktopHosted HTTP if the client supports URL serversUse the hosted URL
    Codex / otherHosted HTTPMatch the client's header settings
    npm / stdioHosted HTTPUse the hosted endpoint

    Tested install guides with pinned versions: Microsoft Agent Framework, Cloudflare Agents, ContextForge, Crush, FastMCP, LibreChat, LiteLLM, mcp-proxy, MCP-Bridge, MCPJungle, MetaMCP, SuperGateway, VS Code.

    Claude Code (hosted HTTP)

    BASH
    claude mcp add --transport http desearch https://mcp.desearch.ai/mcp \
      --header "Authorization: ${DESEARCH_API_KEY}"

    If your CLI build expects a different header flag, use the equivalent custom-header option and keep the same key value.

    Cursor (~/.cursor/mcp.json)

    JSON
    {
      "mcpServers": {
        "desearch": {
          "url": "https://mcp.desearch.ai/mcp",
          "headers": {
            "Authorization": "<DESEARCH_API_KEY>"
          }
        }
      }
    }

    VS Code (user mcp.json / servers)

    JSON
    {
      "servers": {
        "desearch": {
          "type": "http",
          "url": "https://mcp.desearch.ai/mcp",
          "headers": {
            "Authorization": "<DESEARCH_API_KEY>"
          }
        }
      }
    }

    Generic HTTP shape

    JSON
    {
      "url": "https://mcp.desearch.ai/mcp",
      "headers": {
        "Authorization": "<DESEARCH_API_KEY>"
      }
    }

    Verify

    1. Restart or reload the MCP session in the client.
    2. Confirm the Desearch server shows as connected.
    3. Confirm tools appear from live tools/list. Inventory can change. Do not hard-code a tool count.
    4. Call a simple tool such as search-api with {"query":"desearch"} or ai-search with {"prompt":"desearch docs"}.

    Related guide: MCP web search setup guide.

    Pass tool arguments

    Desearch MCP tools take their inputs as JSON arguments in tools/call. For example, x-search takes {"query": "desearch", "count": 3} and web-search takes {"query": "desearch web search API"}. Read each tool's full argument list from tools/list on https://mcp.desearch.ai/mcp, because the tool inventory can change.

    Health

    GET https://mcp.desearch.ai/health returns 200 JSON when the host is up (ok, version, transport, endpoint, and an auth string that states initialize / tools/list are public and tools/call needs a key). GET https://mcp.desearch.ai/api/health returns the same body. This is a probe only; it is not a substitute for a keyed tools/call.

    Troubleshoot

    SymptomCheck
    Error / unauthorized on tools/callSend Authorization: <key> (Bearer <key> or x-api-key also work); discovery (initialize / tools/list) does not need a key
    Server missingConfig path for that client; restart client
    Tools list emptyNetwork to mcp.desearch.ai; key scope
    npm install failuresUse the hosted HTTP endpoint

    npm / stdio

    Use the hosted endpoint at https://mcp.desearch.ai/mcp. That is the recommended setup.

    Keys are created in Console. See Auth and API keys.

    Tools available on the host

    Desearch MCP tools search public sources: the web and social platforms such as X, through tools like web-search, x-search and ai-search. Use them when an agent needs current public information.

    Always prefer your client's live tools/list. Inventory and titles can change; do not hard-code a tool count.

    Cost of each call. From desearch-mcp-server 0.10.0, and on the hosted server, a tool result from a billed call carries its cost in _meta: cost_usd (USD) and usage_count, read from the API's X-Desearch-Cost-Usd and X-Desearch-Usage-Count response headers. This works for every result shape (JSON object, list or text) and does not change the result content or structuredContent. A call that makes several billed requests reports their total. A billed tool reports cost_usd: 0 when the call is not charged. Tools the API never bills, such as task lists and status checks, return no _meta cost fields. search-api reports its cost in the result body (cost_usd, usage_count) instead of _meta. A failed call (isError: true) has no _meta cost fields, even when the API charged for the request; check the request logs in the Billing menu of Desearch Console.

    #ToolTitle
    1ai-searchAI Search
    2x-searchX Search
    3web-searchWeb Search
    4web-links-searchWeb Links Search (deprecated, use search-api)
    5x-links-searchX Links Search
    6x-posts-by-urlsGet X Posts by URLs
    7x-post-by-idGet X Post by ID
    8x-posts-by-userSearch X Posts by User
    9x-post-retweetersList X Post Retweeters
    10x-user-postsGet X User Timeline
    11x-user-repliesGet X User Replies
    12x-post-repliesGet X Post Replies
    13extractExtract Page Content
    14web-crawlCrawl Web Page (Legacy)
    15x-trendsGet X Trends
    16search-apiSearch API
    17tiktokTikTok
    18facebookFacebook
    19instagramInstagram
    20youtubeYouTube
    21redditReddit
    22threadsThreads
    23searchSearch
    24fetchFetch Page

    youtube, reddit, and threads each take an action and that action's arguments, like tiktok, facebook, and instagram.

    • youtube: search (query; optional type, upload_date, sort_by, duration, cursor), video (id), transcript (video_id; optional language), comments (video_id; optional order, cursor), channel (handle), channel_videos (handle; optional sort, cursor).
    • reddit: search (query; optional sort, timeframe, cursor), subreddit (name, case-sensitive), subreddit_posts (name; optional sort, timeframe, cursor), post (id), comments (post_id; optional cursor).
    • threads: search (query; optional start_date, end_date), search_users (query), profile (username), profile_posts (username), post (id).

    These actions return the item itself: video, transcript, and channel on youtube; subreddit and post on reddit; profile and post on threads. List actions return { results, next_cursor, next }. On youtube and reddit, call again with the same action and target and cursor set to next_cursor, unchanged, to get more results. next_cursor is null on the last page, and a cursor lasts 24 hours. threads returns no further pages: next_cursor is always null and no action takes cursor. REST routes and response fields: Social APIs.

    People Search tools

    Confirm these People Search tools in your client's live tools/list.

    ToolTitleBilled
    people-searchPeople SearchYes. Reserves count people at the platform's rate and settles to the people delivered
    people-search-statusGet People Search StatusNo
    people-search-pausePause People SearchNo
    people-search-resumeResume People SearchNo
    people-search-cancelCancel People SearchNo
    people-search-tasksList People Search TasksNo
    people-profilesList People FoundNo

    From desearch-mcp-server 0.4.0, people-search-pause, people-search-resume, and people-search-cancel replace people-search-control. Each takes only task_id.

    Company Search tools

    From desearch-mcp-server 0.6.0. Confirm these tools in your client's live tools/list.

    From 0.9.0, company-search also takes max_cost_usd (your search budget in USD, more than 0, up to 100) and continue_from (the task_id of an ended Company Search, to find only new companies). Each is sent only when set. company-enrich takes neither. See the Company Search guide for what a budget bills.

    ToolTitleBilled
    company-searchCompany SearchYes. Reserves count companies at the Company Search rate and settles to the companies delivered, with a minimum of 1 when it delivers any. With max_cost_usd, reserves the whole budget and also bills search effort the companies delivered do not cover, up to the budget
    company-enrichCompany EnrichYes. Reserves one company per domain at the Company Enrich rate and settles to the companies delivered, with a minimum of 1
    company-search-statusGet Company Search StatusNo
    company-search-pausePause Company SearchNo
    company-search-resumeResume Company SearchNo
    company-search-cancelCancel Company SearchNo
    company-search-tasksList Company Search TasksNo

    Example: search-api

    search-api calls POST /search: web search on the Desearch index. Required field is query. Set summary to true for a short answer written from the results, with numbered citations.

    JSON
    {
      "name": "search-api",
      "arguments": {
        "query": "Who won the 2024 Nobel Prize in Physics?",
        "count": 10,
        "summary": true
      }
    }

    Expected shape when the call succeeds: summary (text and citations with index, url, title) when requested, then results, meta, and cost fields. [n] in summary.text refers to summary.citations[].index. When the summary could not be written, summary is null and meta.notices says Summary unavailable.; the results are still returned.

    AI Search covers X posts and web results, with an optional summary. For web only, use search-api.

    Required field is prompt (not query).

    Optional tools uses short ids. Use web and twitter. Schema default when omitted: ["web", "twitter"]. Do not send youtube. It is not in the ai-search tools enum.

    JSON
    {
      "name": "ai-search",
      "arguments": {
        "prompt": "latest AI search API notes",
        "result_type": "LINKS_WITH_FINAL_SUMMARY",
        "tools": ["web", "twitter"],
        "model": "NOVA"
      }
    }

    Expected shape when result_type is LINKS_WITH_FINAL_SUMMARY: search results with HTTP links, a completion/summary field, and usage/cost fields. When tools includes both web and twitter, a successful call can also include a tweets array of X posts in the same JSON body alongside search. An empty search or tweets array (or a tool_no_results warning) means that tool finished with no hits. Do not assume both arrays are always filled on every SUMMARY call. result_type: ONLY_LINKS returns a JSON object with a search array of link objects (title, link, snippet, highlights) and no completion. An empty search array means the search finished with no hits.

    JSON
    {
      "name": "x-search",
      "arguments": {
        "query": "desearch",
        "count": 3
      }
    }

    Expected shape when the call succeeds: post payloads.

    JSON
    {
      "name": "web-search",
      "arguments": {
        "query": "desearch web search API"
      }
    }

    Expected shape when the call succeeds: a data array of link results.

    JSON
    {
      "name": "x-links-search",
      "arguments": {
        "prompt": "desearch",
        "count": 10
      }
    }

    Use count of at least 10 when you set it. Expected shape includes miner tweet payloads when the call succeeds.

    Examples: extract and web-crawl

    JSON
    {
      "name": "extract",
      "arguments": {
        "url": "https://www.desearch.ai",
        "format": "text"
      }
    }

    format accepts text (default), markdown, or html. markdown keeps headings, lists, tables, and code. full_page works only with format text: it returns all visible text of the page instead of only its main content. The hosted endpoint supports both. In desearch-mcp-server on npm, full_page is available from 0.4.0 and markdown from 0.5.0.

    JSON
    {
      "name": "extract",
      "arguments": {
        "url": "https://www.desearch.ai",
        "format": "markdown"
      }
    }

    A js_required error means the page needs JavaScript rendering, so retry with js set to true; blocked means the site refused or showed a bot check. For the full list of error codes, see the Extract API errors table.

    JSON
    {
      "name": "web-crawl",
      "arguments": {
        "url": "https://www.desearch.ai",
        "format": "text"
      }
    }

    Deprecated. Use search-api for web search.

    Live schema expects prompt plus tools. The only accepted short id is web (default ["web"]). Other short ids are rejected. If you set count, send an integer from 10 to 200.

    JSON
    {
      "name": "web-links-search",
      "arguments": {
        "prompt": "open source browser automation tools",
        "tools": ["web"],
        "count": 10
      }
    }

    Expected shape when the call succeeds: a JSON object with search_results, a list of link objects. An empty list means the search finished with no hits. This tool does not search X. For X post links use x-links-search.

    Truncated item (placeholders, not a live URL):

    JSON
    {
      "search_results": [
        {
          "title": "Example result",
          "link": "https://example.com/result",
          "snippet": "Short source text.",
          "highlights": ["Short source text."],
          "published_date": "2026-10-01T00:00:00"
        }
      ]
    }

    Other X tools (name + arg hints)

    Follow live tool schemas. Argument names:

    ToolArg hints
    x-posts-by-urlsURL list per live schema
    x-post-by-idpost id
    x-posts-by-useruser
    x-post-retweeterspost id (empty users list can be valid). An unknown post id returns 404 "Post not found" and is not charged.
    x-user-postsusername
    x-user-repliesuser
    x-post-repliespost_id. Returns a best-effort sample of replies as a single page, not the full thread, with no cursor or total. If no replies are found, the call returns an empty list ([]) and is not charged.

    Required fields are platform (x, youtube, linkedin, or tiktok) and query. Optional: count (5 to 200), min_score, exclude, idempotency_key, metadata (0.3.0 and later, below), and the platform's filters as top-level arguments, such as min_followers or verified_only on X and require_contact on YouTube and TikTok. A filter that does not apply to the platform is rejected before the billed call.

    JSON
    {
      "name": "people-search",
      "arguments": {
        "platform": "x",
        "query": "Indie hackers building in public who share their MRR",
        "count": 10
      }
    }

    Expected shape when the call succeeds: a JSON object with task_id, status (queued), reserved_cost_usd, and a next hint to poll. The search runs in the background, usually for 1 to 5 minutes. Send the same idempotency_key to retry without starting, or paying for, a second search.

    Then call people-search-status with {"task_id": "<task_id>"}. It returns the status, progress, cost, and the people found so far, each with handle, url, audience, location, score, why, reasons, contacts, links, and evidence_url. Pass next_cursor back as cursor to get only the people found since the last call. When done is true and has_more is false, you have everyone the search found. To pause, resume, or cancel a search, call people-search-pause, people-search-resume, or people-search-cancel. Each takes only task_id.

    CSV and JSON Lines exports are not MCP tools. Call GET /desearch/people/tasks/{task_id}/export on the REST API. Flow and billing: People Search.

    Why a search ended and what each person confirms (0.3.2 and later)

    From desearch-mcp-server 0.3.2, an ended task in people-search-status and people-search-tasks carries completion_reason, coverage_limited (only when it is true: a budget stopped the search before count, so more people may match), and warnings (each code, platform, attempted, failed, and by_reason). Each person carries fully_verified and unverified_criteria: up to five criteria their own profile or posts do not confirm, each marked (unknown), (not met), or (applies) for a disqualifier that applies. A person whose profile could not be read after search carries enrichment: "failed" and enrichment_error. The next hint says when a budget stopped the search early, or when it found nobody to check or nobody who fit.

    JSON
    {
      "status": "completed",
      "done": true,
      "completion_reason": "count_reached",
      "warnings": [
        {"code": "partial_enrichment", "platform": "linkedin", "attempted": 20, "failed": 7, "by_reason": {"not_found": 7}}
      ],
      "people": [
        {
          "handle": "jane-doe",
          "score": 82,
          "fully_verified": false,
          "unverified_criteria": ["Topic signal: posts about backend development (unknown)"]
        }
      ]
    }

    The output above is shortened. What each field means: the Reading results section of People Search.

    Label searches with metadata (0.3.0 and later)

    From desearch-mcp-server 0.3.0, people-search takes an optional metadata object: your own string labels for the search, such as the campaign or workspace it belongs to. The search itself does not use them.

    JSON
    {
      "name": "people-search",
      "arguments": {
        "platform": "x",
        "query": "Indie hackers building in public who share their MRR",
        "count": 10,
        "metadata": {"campaign": "q4-outbound", "workspace_id": "ws_42"}
      }
    }

    A search takes up to 10 keys. Keys are 1 to 40 characters of a-z, 0-9, _, ., or -, and values are strings of up to 200 characters. The tool rejects a bad label before the billed call. people-search, people-search-status, and people-search-tasks return the labels as metadata when the task has any.

    To find those searches later, pass up to 3 labels to people-search-tasks. A task must match all of them exactly:

    JSON
    {
      "name": "people-search-tasks",
      "arguments": {
        "metadata": {"campaign": "q4-outbound"}
      }
    }

    Keep the same metadata filter when you pass cursor to get more results.

    Required field is query: the companies you are looking for, in plain language. Optional: count (5 to 200, default 25), min_score, exclude (domains or URLs), countries and require (top-level arguments, sent as the API's filters.countries and filters.require), roles, infer_emails, verify_emails, metadata, and idempotency_key. The company tools reject unknown arguments, so a nested filters object fails before the billed call.

    JSON
    {
      "name": "company-search",
      "arguments": {
        "query": "Series A fintech startups in Berlin building payment infrastructure",
        "count": 25,
        "countries": ["DE"],
        "require": ["leader_email"]
      }
    }

    company-enrich takes domains (1 to 200 domains or URLs) and the optional roles, infer_emails, verify_emails, metadata, and idempotency_key:

    JSON
    {
      "name": "company-enrich",
      "arguments": {
        "domains": ["acme.com", "https://www.beta.io/about"],
        "roles": ["ceo", "cto"]
      }
    }

    Expected shape when the call succeeds: the task_id, status (queued), and reserved_cost_usd. The task runs in the background. Send the same idempotency_key to retry without starting, or paying for, a second task.

    Then call company-search-status with {"task_id": "<task_id>"}. It returns the task's status, progress, and cost, and a page of the companies delivered so far (limit 1 to 100, default 10). Each company carries its domain, name, score (null for Company Enrich), why, reasons, fully_verified, unverified_criteria, primary_email, primary_contact, contact_coverage, emails, phones, socials, leaders (with roles, verified, emails, and evidence_url), and enrichment. Each email has type, source, source_url, and verification (valid, invalid, risky, or unknown); an inferred email carries confidence and pattern.

    Companies are delivered before every stage has run (enrichment.status: "partial") and fill in later. Pass next_cursor back as cursor to get only the companies delivered since the last call, and call without cursor to read every company in its latest version. The next hint says which to do. company-search-tasks lists your tasks, filtered by type (search or enrich), status, and up to 3 metadata labels. company-search-pause, company-search-resume, and company-search-cancel take task_id.

    A People Search task_id is not found on the company tools, and the other way round. CSV and JSON Lines exports are not MCP tools. Call GET /desearch/companies/tasks/{task_id}/export on the REST API. Flow, result fields, and billing: Company Search.

    Hosted MCP lists x-trends. Schema: required woeid; optional count in 30 to 100.

    JSON
    {
      "name": "x-trends",
      "arguments": {
        "woeid": 23424977,
        "count": 30
      }
    }

    Successful tool result is a JSON object with a trends array (name / query / rank), plus location metadata. Do not pass count below 30.

    Connect

    • Connect over MCP (hosted HTTP) with your Desearch API key.
    • Endpoint: https://mcp.desearch.ai/mcp.
    • See live tools/list for the current tool inventory.