> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agnost.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Toolbox for Databases

> Add Agnost AI analytics to Google's MCP Toolbox for Databases

## Prerequisites

* [MCP Toolbox](https://github.com/googleapis/genai-toolbox) installed
* A `tools.yaml` configuration file for your toolbox setup

## Installation

First, check the current version:

```bash theme={null}
./toolbox version
```

Choose your preferred installation method:

> [tab] Binary
>
> ```bash theme={null}
> export VERSION=0.28.0  # or your preferred version
> curl -O https://storage.googleapis.com/genai-toolbox/v$VERSION/linux/amd64/toolbox
> chmod +x toolbox
> ```

> [tab] Docker
>
> ```bash theme={null}
> export VERSION=0.28.0  # or your preferred version
> docker pull us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:$VERSION
> ```

> [tab] Homebrew
>
> ```bash theme={null}
> brew install mcp-toolbox
> ```

## Enable Telemetry

Set this environment variable before running the server. Use whichever mechanism
your environment provides, such as a shell configuration, `.env` file, container
configuration, or deployment-platform settings:

```dotenv theme={null}
OTEL_EXPORTER_OTLP_HEADERS="X-Agnost-Org-ID=<your-agnost-org-id>"
```

Then run your MCP Toolbox with telemetry enabled and point it to Agnost AI:

```bash theme={null}
./toolbox \
  --tools-file "tools.yaml" \
  --telemetry-otlp="otel.agnost.ai"
```

Replace `<your-agnost-org-id>` with the organization ID from your
[Agnost AI dashboard](https://app.agnost.ai).

### Docker Usage

If using Docker:

```bash theme={null}
docker run \
  -e OTEL_EXPORTER_OTLP_HEADERS="X-Agnost-Org-ID=<your-agnost-org-id>" \
  -v $(pwd)/tools.yaml:/app/tools.yaml \
  us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:$VERSION \
  --tools-file "/app/tools.yaml" \
  --telemetry-otlp="otel.agnost.ai"
```

## That's It!

Your MCP Toolbox is now sending telemetry data to Agnost AI. Visit your [Agnost AI dashboard](https://app.agnost.ai) to:

* Monitor tool invocations in real-time
* Track performance metrics and response times
* Analyze usage patterns and optimization opportunities
* Set up alerts for performance issues

## Verify

Call one Toolbox tool, then open **Events** and **Tool calls** in Agnost AI. You should see the tool name, latency, success/failure, and exported metadata.

## Troubleshooting

* Confirm `OTEL_EXPORTER_OTLP_HEADERS` contains `X-Agnost-Org-ID=<your-agnost-org-id>`.
* Confirm Toolbox is started with `--telemetry-otlp="otel.agnost.ai"`.
* If running Docker, confirm the env var is passed into the container.

## Need Help?

* Check your [dashboard](https://app.agnost.ai) for incoming data
* Contact us at [founders@agnost.ai](mailto:founders@agnost.ai) if you need assistance
* [Book a call](https://call.agnost.ai/) for personalized setup support

## MCP Toolbox Support Resources

* Visit the [MCP Toolbox documentation](https://mcp-toolbox.dev/documentation/getting-started/) for detailed guides

## Next steps

* [Tool calls](https://docs.agnost.ai/using-tool-calls.md): analyze Toolbox usage, outcomes, and latency.
* [Events](https://docs.agnost.ai/using-events.md): inspect the exported OpenTelemetry records.
* [Alerts](https://docs.agnost.ai/using-alerts.md): monitor important tool conditions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.