Skip to content

MCP Setup

ctxd exposes search and retrieval through a remote MCP endpoint. Any MCP-compatible agent that supports remote HTTP MCP servers can search your files.

URL: https://mcp.ctxd.dev/mcp

Authentication: Authorization: Bearer <your-api-key>

Configure your MCP client with the remote endpoint and bearer token. The exact config shape depends on the client, but it should include:

{
"url": "https://mcp.ctxd.dev/mcp",
"headers": {
"Authorization": "Bearer your-api-key"
}
}

For clients that use an mcpServers map, the configuration usually looks like:

{
"mcpServers": {
"ctxd": {
"url": "https://mcp.ctxd.dev/mcp",
"headers": {
"Authorization": "Bearer your-api-key"
}
}
}
}

No local CLI server command is required.

The remote MCP server exposes three tools:

Search across all connected apps.

query: "text:deployment application:slack"

Returns a list of results with document_uid, title, url, optional snippet, is_snippet, and requires_fetch_for_full_text.

Fetch the full content of a specific document.

document_uid: "doc-uid-123"

Returns the full document text with metadata.

Get the user’s connected integrations and file tree. Call this first to understand what data is available before searching.

Returns installed apps, connection status, and a hierarchical file tree of indexed files.

A typical agent workflow:

  1. Call get_profile to see what apps are connected and what files exist
  2. Use the file tree to understand where data lives
  3. Call search with a DSL query targeting the right apps and folders
  4. Call fetch_document to get full content of specific results
  5. Reason over the content and cite sources

title: ‘MCP Setup’


ctxd exposes search and retrieval through a remote MCP endpoint. Any MCP-compatible agent that supports remote HTTP MCP servers can search your files.

URL: https://mcp.ctxd.dev/mcp

Authentication: Authorization: Bearer <your-api-key>

Configure your MCP client with the remote endpoint and bearer token. The exact config shape depends on the client, but it should include:

{
"url": "https://mcp.ctxd.dev/mcp",
"headers": {
"Authorization": "Bearer your-api-key"
}
}

For clients that use an mcpServers map, the configuration usually looks like:

{
"mcpServers": {
"ctxd": {
"url": "https://mcp.ctxd.dev/mcp",
"headers": {
"Authorization": "Bearer your-api-key"
}
}
}
}

No local CLI server command is required.

The remote MCP server exposes three tools:

Search across all connected apps.

query: "text:deployment application:slack"

Returns a list of results with document_uid, title, url, optional snippet, is_snippet, and requires_fetch_for_full_text.

Fetch the full content of a specific document.

document_uid: "doc-uid-123"

Returns the full document text with metadata.

Get the user’s connected integrations and file tree. Call this first to understand what data is available before searching.

Returns installed apps, connection status, and a hierarchical file tree of indexed files.

A typical agent workflow:

  1. Call get_profile to see what apps are connected and what files exist
  2. Use the file tree to understand where data lives
  3. Call search with a DSL query targeting the right apps and folders
  4. Call fetch_document to get full content of specific results
  5. Reason over the content and cite sources