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.
Configure your MCP client to connect to the GroundX MCP endpoint:
The same endpoint is also reachable at https://api.groundx.ai/api/v1/mcp. Either URL is accepted.
GroundX MCP uses the same API key authentication as the GroundX API.
Send your API key using the X-API-Key header:
HTTP-based MCP clients should also send:
Some MCP clients do not support custom headers. Those clients are currently not supported.
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:
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.
The tool names, methods, paths, and required top-level arguments are:
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.
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 IDsearch_documents: searches a specific list of document IDsUse search_content when the agent should search a GroundX bucket, group, or document.
The id value can be a bucket ID, group ID, or document ID. The query value is the natural-language search query.
Use search_documents when the agent should search an explicit set of document IDs.
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.
The search tools accept these common arguments:
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:
bucket_list to find available buckets.search_content with that bucket ID and the user’s query.search.text as context for the final answer, or use search.results when citations are needed.Example bucket_list call:
Example search_content call after the agent selects bucket 31:
Because GroundX MCP exposes ingest APIs as tools, an agent can also add content to GroundX before searching it.
For example, an agent can:
bucket_create or bucket_list to identify the destination bucket.document_ingestremote to ingest a publicly accessible file.document_getprocessingstatusbyid to check processing status, polling until status reaches complete or error.search_content or search_documents.Example document_ingestremote call:
The response includes a processId that the agent uses to poll for completion.
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:
A reasonable polling interval is five seconds. Search calls issued before complete will not include the new content.
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.
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:
workflow_add_to_account sets a default workflow for every ingest in the account.workflow_add_to_id overrides the account default for content ingested into that group or bucket.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.
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.
Currently, clients must support HTTP headers. Configure your client with the MCP server URL and API key header:
apikey_* tools manage API keys for the account; treat them as administrative and do not expose them to end-user agents.search_content when searching a bucket, group, or document ID.search_documents when searching a specific list of document IDs.Accept: application/json, text/event-stream for HTTP-based MCP requests.