For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign Up
DocumentationAPI ReferenceSDKs
DocumentationAPI ReferenceSDKs
  • Fundamentals
    • Welcome
    • Quickstart
    • API Concepts
    • Document Types and Ingest Capacities
    • Filtering Content
    • Bulk Uploading in Python
  • Evaluation
    • How We Approach Testing
  • Guides
    • Prompting and Integration
    • GroundX Ingest for Parsing
    • In-Depth Exploration of GroundX Document Ingest
    • In-Depth Exploration of GroundX Search
    • MCP Support
  • GroundX On-Prem
    • GroundX On-Prem on AWS
    • GroundX On-Prem on OpenShift
    • Debugging GroundX On-Prem
Sign Up
LogoLogo
On this page
  • Endpoint
  • Authentication
  • How MCP Tools Map to GroundX APIs
  • Tool Reference
  • Walkthrough: Search Existing Content
  • Search by bucket, group, or document ID
  • Search specific documents
  • Search Tool Arguments
  • Walkthrough: Inspect and Search a Bucket
  • Walkthrough: Ingest and Query a Document
  • Ingest is asynchronous
  • Local files
  • Workflow Tools
  • Pre-Flight Health Check Pattern
  • Client Configuration
  • Notes
Guides

GroundX MCP Integration Guide

Was this page helpful?
Previous

GroundX On-Prem on AWS

Next
Built with

GroundX supports the Model Context Protocol (MCP), allowing compatible AI agents and MCP clients to use the GroundX API through a standard tool interface.

The GroundX MCP endpoint exposes the GroundX APIs as MCP tools. After a client connects, it can discover tools for buckets, documents, groups, search, workflows, API keys, account information, and health checks. The agent can then call those tools when it needs to search content, ingest documents, inspect processing status, manage buckets, or perform other GroundX API operations.

Endpoint

Configure your MCP client to connect to the GroundX MCP endpoint:

1https://api.groundx.ai/mcp

The same endpoint is also reachable at https://api.groundx.ai/api/v1/mcp. Either URL is accepted.

Authentication

GroundX MCP uses the same API key authentication as the GroundX API.

Send your API key using the X-API-Key header:

1X-API-Key: YOUR_API_KEY

HTTP-based MCP clients should also send:

1Content-Type: application/json
2Accept: application/json, text/event-stream

Some MCP clients do not support custom headers. Those clients are currently not supported.

How MCP Tools Map to GroundX APIs

GroundX MCP tools are generated from GroundX API operations. Tool names follow the API resource and action, such as bucket_list, document_ingestremote, search_content, or workflow_create.

Each tool includes an input schema and output schema exposed through MCP tool discovery. Compatible MCP clients should discover the available tools and their parameters automatically.

The current MCP tool surface includes GroundX tools for:

API areaExample toolsWhat agents can do
API keysapikey_create, apikey_list, apikey_update, apikey_deleteManage API keys for the GroundX account.
Bucketsbucket_create, bucket_list, bucket_get, bucket_update, bucket_deleteCreate, inspect, rename, list, and delete buckets.
Customercustomer_getRetrieve account and subscription information for the API key.
Documents and ingestdocument_ingestremote, document_crawlwebsite, document_get, document_list, document_update, document_getprocessingstatusbyidIngest documents from public URLs or websites, list and retrieve documents, update document attributes, and check ingest status.
Document collectionsdocuments_copy, documents_deletePerform bulk document actions.
Groupsgroup_create, group_list, group_addbucket, group_removebucket, group_update, group_deleteManage groups and bucket membership.
Healthhealth_get, health_listCheck API health.
Searchsearch_content, search_documentsSearch GroundX content by bucket, group, document, or explicit document IDs.
Workflowsworkflow_create, workflow_list, workflow_get, workflow_update, workflow_delete, workflow_add_to_account, workflow_add_to_idManage workflows and assign them to the account, buckets, or groups.

Because GroundX API operations are exposed as tools, MCP clients can support more than retrieval. For example, an agent can list buckets before searching, ingest a new document, check the ingest process, and then search the resulting content, all through MCP tool calls.

Tool Reference

The tool names, methods, paths, and required top-level arguments are:

ToolMethodPathRequired arguments
apikey_createPOST/v1/apikeyname
apikey_deleteDELETE/v1/apikey/{apiKey}apiKey
apikey_listGET/v1/apikeyNone
apikey_updatePUT/v1/apikey/{apiKey}apiKey, name
bucket_createPOST/v1/bucketname
bucket_deleteDELETE/v1/bucket/{bucketId}bucketId
bucket_getGET/v1/bucket/{bucketId}bucketId
bucket_listGET/v1/bucketNone
bucket_updatePUT/v1/bucket/{bucketId}bucketId, newName
customer_getGET/v1/customerNone
document_cancelprocessDELETE/v1/ingest/{processId}processId
document_crawlwebsitePOST/v1/ingest/documents/websitewebsites
document_delete1DELETE/v1/ingest/document/{documentId}documentId
document_getGET/v1/ingest/document/{documentId}documentId
document_getextractGET/v1/ingest/document/extract/{documentId}documentId
document_getprocessesGET/v1/ingestNone
document_getprocessingstatusbyidGET/v1/ingest/{processId}processId
document_getxrayGET/v1/ingest/document/xray/{documentId}documentId
document_ingestremotePOST/v1/ingest/documents/remotedocuments
document_listGET/v1/ingest/documentsNone
document_lookupGET/v1/ingest/documents/{id}id
document_updatePUT/v1/ingest/documentsdocuments
documents_copyPOST/v1/ingest/copytoBucket
documents_deleteDELETE/v1/ingest/documentsdocumentIds
group_addbucketPOST/v1/group/{groupId}/bucket/{bucketId}groupId, bucketId
group_createPOST/v1/groupname
group_deleteDELETE/v1/group/{groupId}groupId
group_getGET/v1/group/{groupId}groupId
group_listGET/v1/groupNone
group_removebucketDELETE/v1/group/{groupId}/bucket/{bucketId}groupId, bucketId
group_updatePUT/v1/group/{groupId}groupId, newName
health_getGET/v1/health/{service}service
health_listGET/v1/healthNone
search_contentPOST/v1/search/{id}id, query
search_documentsPOST/v1/search/documentsquery, documentIds
workflow_add_to_accountPOST/v1/workflow/relationshipworkflowId
workflow_add_to_idPOST/v1/workflow/relationship/{id}id, workflowId
workflow_createPOST/v1/workflowNone
workflow_deleteDELETE/v1/workflow/{id}id
workflow_getGET/v1/workflow/{id}id
workflow_get_accountGET/v1/workflow/relationshipNone
workflow_listGET/v1/workflowNone
workflow_remove_from_accountDELETE/v1/workflow/relationshipNone
workflow_remove_from_idDELETE/v1/workflow/relationship/{id}id
workflow_updatePUT/v1/workflow/{id}id

Required arguments in this table are the top-level MCP tool arguments. Some object and array arguments have their own nested required fields. For example, document_ingestremote requires documents, and each document object requires bucketId and sourceUrl.

Walkthrough: Search Existing Content

A common MCP use case is allowing an agent to search GroundX-managed content for retrieval-augmented generation (RAG). GroundX exposes two search tools:

  • search_content: searches a bucket ID, group ID, or document ID
  • search_documents: searches a specific list of document IDs

Search by bucket, group, or document ID

Use search_content when the agent should search a GroundX bucket, group, or document.

1{
2 "id": 31,
3 "query": "What does this document say about termination?",
4 "n": 10
5}

The id value can be a bucket ID, group ID, or document ID. The query value is the natural-language search query.

Search specific documents

Use search_documents when the agent should search an explicit set of document IDs.

1{
2 "documentIds": ["doc-id-1", "doc-id-2"],
3 "query": "Summarize the renewal terms",
4 "n": 10
5}

Both search tools can return search.text, which is formatted for use as language model context, and search.results, which contains matching chunks for citations or custom display.

Search Tool Arguments

The search tools accept these common arguments:

ArgumentRequiredDescription
queryYesThe natural-language search query.
idRequired for search_contentA GroundX bucket ID, group ID, or document ID.
documentIdsRequired for search_documentsA list of specific GroundX document IDs.
nNoMaximum number of search results to return. Accepts 1-100 and defaults to 20.
verbosityNoControls how much result detail is returned. 0 returns recommended context only, 1 includes results without searchData, and 2 includes results with searchData.
nextTokenNoPagination token from a previous search response.
filterNoOptional metadata filter applied before search. See Filtering Content for the supported MongoDB-style operator syntax ($and, $or, $in, $gt, etc.).
relevanceNoOptional minimum relevance threshold.

Walkthrough: Inspect and Search a Bucket

An agent does not need the user to provide every ID up front if the API key has access to the relevant GroundX resources. It can use other GroundX tools first, then call search.

For example, an agent can:

  1. Call bucket_list to find available buckets.
  2. Choose the relevant bucket from the returned bucket list.
  3. Call search_content with that bucket ID and the user’s query.
  4. Use search.text as context for the final answer, or use search.results when citations are needed.

Example bucket_list call:

1{
2 "n": 20
3}

Example search_content call after the agent selects bucket 31:

1{
2 "id": 31,
3 "query": "Find the policy for data retention.",
4 "verbosity": 2
5}

Walkthrough: Ingest and Query a Document

Because GroundX MCP exposes ingest APIs as tools, an agent can also add content to GroundX before searching it.

For example, an agent can:

  1. Call bucket_create or bucket_list to identify the destination bucket.
  2. Call document_ingestremote to ingest a publicly accessible file.
  3. Call document_getprocessingstatusbyid to check processing status, polling until status reaches complete or error.
  4. Once processing is complete, call search_content or search_documents.

Example document_ingestremote call:

1{
2 "documents": [
3 {
4 "bucketId": 31,
5 "sourceUrl": "https://example.com/handbook.pdf",
6 "fileName": "handbook.pdf",
7 "fileType": "pdf"
8 }
9 ]
10}

The response includes a processId that the agent uses to poll for completion.

Ingest is asynchronous

document_ingestremote, document_crawlwebsite, document_update, documents_copy, and documents_delete all return a processId immediately and process in the background. Newly ingested documents are not searchable until processing completes. Agents should poll document_getprocessingstatusbyid with the returned processId until ingest.status reaches one of:

StatusMeaning
queuedSubmitted; not yet picked up
processingActively being processed
completeFinished — documents are searchable
errorFailed — see ingest.statusMessage
cancelledCancelled via document_cancelprocess

A reasonable polling interval is five seconds. Search calls issued before complete will not include the new content.

Local files

The GroundX MCP server does not expose a tool for local-file uploads. To make a local file available to MCP, upload it to GroundX-hosted storage via the pre-signed URL service first, then submit the resulting hosted URL to document_ingestremote. This pattern matches the 25–50 MB per-file limit and the 50-file batch capacity of remote ingest.

Workflow Tools

Workflows control the processing pipeline applied during ingest — chunking strategy, section strategy, custom LLM steps, and extract agent definitions. The 10 workflow_* MCP tools cover workflow CRUD plus assigning a workflow to the account, a bucket, or a group.

Workflow assignments are layered. More specific assignments override broader ones:

  1. Account level — workflow_add_to_account sets a default workflow for every ingest in the account.
  2. Group or bucket level — workflow_add_to_id overrides the account default for content ingested into that group or bucket.
  3. Document level — the document’s processLevel field (full or none) controls how much processing happens for that single ingest.

Reading the current state is symmetric: workflow_get_account returns the account-level assignment, and workflow_get with a groupId, bucketId, or workflowId returns the workflow at that scope.

Pre-Flight Health Check Pattern

The health_list and health_get tools return current service health. Statuses update every five minutes. Calling health_list before a large ingest run is a cheap way to short-circuit a workload when an upstream service is degraded. Each entry returns service, status (healthy, degraded, down, or unknown), and lastUpdate.

Client Configuration

Currently, clients must support HTTP headers. Configure your client with the MCP server URL and API key header:

1{
2 "url": "https://api.groundx.ai/mcp",
3 "headers": {
4 "X-API-Key": "YOUR_API_KEY",
5 "Accept": "application/json, text/event-stream"
6 }
7}

Notes

  • GroundX MCP exposes GroundX API operations as MCP tools, not only search.
  • The available tools and schemas are returned through MCP tool discovery.
  • Tool access is scoped by the API key used to connect to MCP.
  • The apikey_* tools manage API keys for the account; treat them as administrative and do not expose them to end-user agents.
  • Use search_content when searching a bucket, group, or document ID.
  • Use search_documents when searching a specific list of document IDs.
  • Include Accept: application/json, text/event-stream for HTTP-based MCP requests.