MCP server

Use DeepInquiry facts from an AI agent. The server speaks the Model Context Protocol over HTTP, so any client that supports remote MCP servers can connect.

Connect

The endpoint is https://www.deepinquiry.ai/mcp. Searching works with no key in demo mode (gold and silver facts, two results per search, a small daily limit). For full results, send your own DeepInquiry API key in the x-api-key header (or as a Bearer token); requests then count against your plan like calls to the REST API. A free key (500 requests a month) is available at /signup. Listing the tools needs no key.

{
  "mcpServers": {
    "deepinquiry": {
      "url": "https://www.deepinquiry.ai/mcp",
      "headers": { "x-api-key": "<your DeepInquiry API key>" }
    }
  }
}

Tools

  • search_facts — semantic search. Arguments: query (required), limit (1–10, default 5), category, min_tier (gold, silver, bronze or unverified).
  • get_fact — one fact by numeric id, with its source groups.
  • random_fact — one random approved fact.

Each tool returns the API response as JSON text. What the fields mean is described in the response field reference. When you cite a fact, link to its page on deepinquiry.ai and to the sources listed there.

Starter keys for agents

An agent working for a person can get a restricted starter key without a human filling in a form. The agent supplies the email address of the person it works for. That person receives an email and confirms the key with one click. Only call this when the person has asked you to set up DeepInquiry for them.

  • Before the owner confirms: 50 requests, 10 per minute, gold and silver facts, valid for 7 days.
  • After the owner confirms: the key becomes a regular free key (500 requests a month) and no longer expires.
  • One starter key per owner email. Limits apply per address and per day.
  • The key is shown once, in the response, and cannot be recovered. The confirmation email never contains it.

Over MCP, call request_starter_key with owner_email and an optional agent_name. Over HTTP, send POST https://www.deepinquiry.ai/api/v1/agent/keys with a JSON body. The first request returns status 428 with a small computational puzzle (about a second of work for the agent); solve it and send the same request again with the solution. GET on the same address describes the exact format.

Try it with curl

curl -X POST https://www.deepinquiry.ai/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "x-api-key: <your DeepInquiry API key>" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_facts","arguments":{"query":"how many hearts does an octopus have","limit":3}}}'

Notes

  • The server keeps no session. Calls with a key are forwarded with that key; calls without one use demo mode.
  • The search and fact tools are read-only. request_starter_key is the one tool that creates something (see below).
  • The same data is available through the REST API.
MCP server — DeepInquiry · DeepInquiry