Docs / Page

MCP Integration

Agentii is built for the agent economy. The Model Context Protocol (MCP) enables AI agents to discover and invoke our tools automatically — no manual API integration required.

Quick Setup

Create an .mcp.json file in your CLI agent's configuration directory. The agent will automatically discover all 19 tools via tools/list.

// .mcp.json — place in your CLI agent's config directory
{
  "mcpServers": {
    "agentii": {
      "url": "https://mcp.agentii.ai/mcp",
      "env": {
        "AGENTII_API_KEY": "sk_live_your_key_here"
      }
    }
  }
}

API Key Passthrough

The MCP server does not authenticate independently. It forwards your AGENTII_API_KEY environment variable as the X-API-Key header to api.agentii.ai. Configure the key once in your agent's MCP settings — all 19 tools inherit it.

Verification

Confirm the MCP server is reachable and serving tools:

curl https://mcp.agentii.ai/mcp/health
# => {"status":"ok","version":"1.0.0","tools":19}

curl https://mcp.agentii.ai/mcp/tools/list
# => {"tools":[{...19 tool definitions...}]}

19-Tool Reference

Every REST endpoint is exposed as an MCP tool. Tool names match endpoint path suffixes.

Tool NameDescriptionCredits
search_documentsSearch 8-K/6-K page-content filings1
search_sec_filingsSEC filing metadata index (10-K/10-Q/20-F/etc.)1
search_xbrl_factsXBRL financial facts by ticker, concept, period1
list_xbrl_conceptsDistinct XBRL concepts — use before search_xbrl_facts1
get_company_financialsCompany financial overview: filings, highlights, metrics1
search_companiesSearch companies from registry (165 tickers)1
get_company_profileEnriched profile with coverage, XBRL count, earnings count1
search_earnings_calendarEarnings events with deduplication1
list_upcoming_earningsUpcoming earnings dates grouped by report_date1
list_coveragePer-source ticker coverage and freshness1
get_ticker_coverageSingle-ticker coverage across all sources1
list_domainsKnowledge domains (9 domains)1
get_company_fiscal_calendarFiscal year definition for SEC date alignment1
search_unifiedCross-source search, results grouped by source_type3
list_sourcesDiscover data sources for agentic retrieval1
read_source_outlinePage map — all page descriptions, no page_content2
search_keyword_in_sourceKeyword FTS — returns page_no + description pairs2
read_source_pagesDeep read — full page_content markdown with citations1/page
search_cross_periodParallel 3-layer protocol across fiscal periods1/period

Advanced: include=pending

Call tools/list?include=pending to receive the full P0 + P2 tool surface (~32 tools). P2 tools return 503 DATA_NOT_AVAILABLE until their backing data tables are populated. Default response includes only P0 tools.

See also: API Reference · Getting Started · Agentic Search Guide