Instana MCP Server
Official
> ⬆️ **FastMCP Upgraded to 4.1.0**: Starting with this release 1.0.4, the server is built on **FastMCP 4.1.0** (previously 3.4.7). If you install from source or manage your own environment, re-sync your dependencies (for example, `uv sync`) to pick up the new version.
> 🔒 **SSL Enabled by Default**: Starting with this release 1.0.3, SSL certificate verification is **enabled by default** for all outgoing Instana API calls. You can customize this behaviour (disable, supply a custom CA bundle, etc.) via CLI flag, environment variable, or `config.yaml`. See [SSL Certificate Verification](#ssl-certificate-verification) for full details.
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
## Table of Contents
- [MCP Server for IBM Instana](#mcp-server-for-ibm-instana)
- [Quick Links](#quick-links)
- [Architecture Overview](#architecture-overview)
- [Workflow](#workflow)
- [Prerequisites](#prerequisites)
- [Installing Instana MCP server](#installing-instana-mcp-server)
- [Option 1: Install from PyPI (Recommended)](#option-1-install-from-pypi-recommended)
- [Option 2: Development Installation](#option-2-development-installation)
- [Installing uv](#installing-uv)
- [Setting Up the Environment](#setting-up-the-environment)
- [Authentication](#authentication)
- [Streamable HTTP Mode](#streamable-http-mode)
- [Stdio Mode](#stdio-mode)
- [Security Recommendations](#security-recommendations)
- [Starting the Local MCP Server](#starting-the-local-mcp-server)
- [Server Command Options](#server-command-options)
- [Using the CLI (PyPI Installation)](#using-the-cli-pypi-installation)
- [Using Development Installation](#using-development-installation)
- [Starting in Streamable HTTP Mode](#starting-in-streamable-http-mode)
- [Using CLI (PyPI Installation)](#using-cli-pypi-installation)
- [Using Development Installation](#using-development-installation-1)
- [Starting in Stdio Mode](#starting-in-stdio-mode)
- [Using CLI (PyPI Installation)](#using-cli-pypi-installation-1)
- [Using Development Installation](#using-development-installation-2)
- [Tool Categories](#tool-categories)
- [Using CLI (PyPI Installation)](#using-cli-pypi-installation-2)
- [Using Development Installation](#using-development-installation-3)
- [SSL Certificate Verification](#ssl-certificate-verification)
- [Using the CLI option](#using-the-cli-option)
- [Using the environment variable](#using-the-environment-variable)
- [Using config.yaml (SaaS / Kubernetes deployments)](#using-configyaml-saas--kubernetes-deployments)
- [Using a custom CA bundle](#using-a-custom-ca-bundle)
- [API Call Timeout](#api-call-timeout)
- [Catalog Response Caching](#catalog-response-caching)
- [Verifying Server Status](#verifying-server-status)
- [Common Startup Issues](#common-startup-issues)
- [Setup and Usage](#setup-and-usage)
- [Supported MCP Clients](#supported-mcp-clients)
- [Connecting to Multiple Instana MCP Servers](#connecting-to-multiple-instana-mcp-servers)
- [Available Tools](#available-tools)
- [Tool Filtering](#tool-filtering)
- [Docker Deployment](#docker-deployment)
- [Building the Docker Image](#building-the-docker-image)
- [**Prerequisites**](#prerequisites-1)
- [**Build and Run**](#build-and-run)
- [Connecting to mcp-instana container in streamable mode](#connecting-to-mcp-instana-container-in-streamable-mode)
- [Connecting to mcp-instana in stdio mode](#connecting-to-mcp-instana-in-stdio-mode)
- [General Issues](#general-issues)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
# MCP Server for IBM Instana
## Quick Links
- **[Tools & Examples](docs/TOOLS_AND_EXAMPLES.md)** - Comprehensive tool documentation with real-world examples
- **[Privacy Policy](docs/PRIVACY.md)** - Data handling and privacy information
- **[Docker Deployment Guide](DOCKER.md)** - Comprehensive Docker deployment, multi-architecture builds, and production setup
---
The Instana MCP server enables seamless interaction with the Instana observability platform, allowing you to access real-time observability data directly within your development workflow.
It serves as a bridge between clients (such as AI agents or custom tools) and the Instana REST APIs, converting user queries into Instana API requests and formatting the responses into structured, easily consumable formats.
The server supports both **Streamable HTTP** and **Stdio** transport modes for maximum compatibility with different MCP clients. For more details, refer to the [MCP Transport Modes specification](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports).
## Architecture Overview
```mermaid
graph LR
subgraph "Application Host Process"
MH[MCP Host]
MSI[Instana MCP Server]
MST[ProductA MCP Server]
MSC[ProductB MCP Server]
MH <--> MSI
MH <--> MSC
MH <--> MST
end
subgraph "Remote Service"
II[Instana Instance]
TI[ProductA Instance]
CI[ProductB Instance]
MSI <--> II
MST <--> TI
MSC <--> CI
end
subgraph "LLM"
L[LLM]
MH <--> L
end
```
## Workflow
Consider a simple example: You're using an MCP Host (such as Claude Desktop, VS Code, or another client) connected to the Instana MCP Server. When you request information about Instana alerts, the following process occurs:
1. The MCP client retrieves the list of available tools from the Instana MCP server
2. Your query is sent to the LLM along with tool descriptions
3. The LLM analyzes the available tools and selects the appropriate one(s) for retrieving Instana alerts
4. The client executes the chosen tool(s) through the Instana MCP server
5. Results (latest alerts) are returned to the LLM
6. The LLM formulates a natural language response
7. The response is displayed to you
```mermaid
sequenceDiagram
participant User
participant ChatBot as MCP Host
participant MCPClient as MCP Client
participant MCPServer as Instana MCP Server
participant LLM
participant Instana as Instana Instance
ChatBot->>MCPClient: Load available tools from MCP Server
MCPClient->>MCPServer: Request available tool list
MCPServer->>MCPClient: Return list of available tools
User->>ChatBot: Ask "Show me the latest alerts from Instana for application robot-shop"
ChatBot->>MCPClient: Forward query
MCPClient->>LLM: Send query and tool description
LLM->>MCPClient: Select appropriate tool(s) for Instana alert query
MCPClient->>MCPServer: Execute selected tool(s)
MCPServer->>Instana: Retrieve alerts for application robot-shop
MCPServer->>MCPClient: Send alerts of Instana result
MCPClient->>LLM: Forward alerts of Instana
LLM->>ChatBot: Generate natural language response for Instana alerts
ChatBot->>User: Show Instana alert response
```
## Prerequisites
- `python` - version 3.10 or higher
- `pip` - version 21.3 or higher (only required for pypi based installation)
- `uv` - version 0.11.6 or higher (only required for development installation)
## Installing Instana MCP server
### Option 1: Install from PyPI (Recommended)
The easiest way to use mcp-instana is to install it directly from PyPI:
```shell
pip install mcp-instana
```
After installation, you can run the server using the `mcp-instana` command directly.
### Option 2: Development Installation
For development or local customization, you can clone and set up the project locally.
#### Installing uv
This project uses `uv`, a fast Python package installer and resolver. To install `uv`, you have several options:
**Using pip:**
```shell
pip install uv
```
**Using Homebrew (macOS):**
```shell
brew install uv
```
For more installation options and detailed instructions, visit the [uv documentation](https://github.com/astral-sh/uv).
#### Setting Up the Environment
After installing `uv`, set up the project environment by running:
```shell
uv sync
```
## Authentication
The server authenticates to Instana with an **Instana API token**. How you supply the token depends on the transport mode.
| Transport mode | How credentials are provided |
|---|---|
| **Streamable HTTP** | HTTP headers sent with every request |
| **Stdio** | Environment variables (`INSTANA_BASE_URL`, `INSTANA_API_TOKEN`) or the `--base-url` / `--api-token` CLI flags |
### Streamable HTTP Mode
In Streamable HTTP mode, pass the Instana credentials as HTTP headers on every request. This approach enhances security and flexibility by:
- Avoiding credential storage in server-side environment variables
- Enabling the use of different credentials (and different Instana instances) for different clients or requests
- Supporting shared environments where environment variable modification is restricted
**Required Headers:**
| Header | Description |
|---|---|
| `instana-base-url` | URL of your Instana instance. Must start with `https://` (or `http://` for local development and testing only). |
| `instana-api-token` | Your Instana API token |
**Example:**
```bash
--header "instana-base-url: https://your-instance.instana.io"
--header "instana-api-token: your-api-token"
```
See the [MCP client guides](#supported-mcp-clients) for how to set these headers in your client's configuration.
**Authentication Flow:**
1. The client sends `instana-base-url` and `instana-api-token` headers with each request.
2. The server validates that both headers are present and that the base URL is well formed.
3. The server calls the Instana API on behalf of the client using the supplied token.
4. Requests with missing or invalid credentials fail with an authentication error and no call is made to Instana.
### Stdio Mode
In Stdio mode there are no HTTP requests to carry headers, so credentials are read when the server starts. Set them as environment variables:
```bash
export INSTANA_BASE_URL="https://your-instana-instance.instana.io"
export INSTANA_API_TOKEN="your_instana_api_token"
```
Alternatively, pass `--base-url` and `--api-token` on the command line. CLI flags take precedence over the environment variables. The server will not start in Stdio mode if either value is missing.
### Security Recommendations
- Use HTTPS for `instana-base-url` in any non-local environment. See [SSL Certificate Verification](#ssl-certificate-verification) for certificate options.
- Do not commit API tokens to source control or share client configuration files that contain them.
- Prefer environment variables or `env` blocks in your MCP client configuration over CLI flags in Stdio mode, because command-line arguments can be visible in process listings.
- Create a dedicated API token for the MCP server, granting only the permissions it needs. Ensure the token has the permissions required to invoke the MCP tools you enable. Check [here](docs/PERMISSIONS.md) for more information.
## Starting the Local MCP Server
Before configuring any MCP client (Claude Desktop, GitHub Copilot, or custom MCP clients), you need to start the local MCP server. The server supports two transport modes: **Streamable HTTP** and **Stdio**.
### Server Command Options
#### Using the CLI (PyPI Installation)
If you installed mcp-instana from PyPI, use the `mcp-instana` command:
```bash
mcp-instana [OPTIONS]
```
#### Using Development Installation
For local development, use the `uv run` command:
```bash
uv run src/core/server.py [OPTIONS]
```
**Available Options:**
- `--transport <mode>`: Transport mode (choices: `streamable-http`, `stdio`)
- `--debug`: Enable debug mode with additional logging
- `--log-level <level>`: Set the logging level (choices: `DEBUG`, `INFO`, `WARNING`, `ERROR`, `CRITICAL`)
- `--tools <categories>`: Comma-separated list of tool categories to enable (e.g., infra,app,events,website). Enabling a category will also enable its related prompts. For example: `--tools infra` enables the infra tools and all infra-related prompts.
- `--list-tools`: List all available tool categories and exit
- `--port <port>`: MCP server port (default: 8080, can be overridden with PORT env var)
- `--admin-port <port>`: Admin server port for health checks (default: 8601, can be overridden with ADMIN_PORT env var)
- `--verify-ssl [BOOL]`: Enable or disable SSL certificate verification for outgoing Instana API calls (default: `true`). Pass `false`/`0`/`no` to disable. Equivalent to setting `INSTANA_SSL_VERIFY=false`.
- `--stream-read-buffer-size <SIZE>`: Bytes per I/O read call used by streaming parsers (default: `65536` / `64k`). Accepts a plain byte count or a human-friendly suffix: `64k`, `64kb`, `64m`, `64mb`, `64g`, `64gb`. Can also be set via the `STREAM_READ_BUFFER_SIZE` environment variable.
- `--help`: Show help message and exit
### Starting in Streamable HTTP Mode
**Streamable HTTP mode** provides a REST API interface and is recommended for most use cases.
#### Using CLI (PyPI Installation)
```bash
# Start with all tools enabled (default)
mcp-instana --transport streamable-http
# Start with debug logging
mcp-instana --transport streamable-http --debug
# Start with a specific log level
mcp-instana --transport streamable-http --log-level WARNING
# Start with specific tool categories only
mcp-instana --transport streamable-http --tools infra,events
# Combine options (specific log level, custom tools)
mcp-instana --transport streamable-http --log-level DEBUG --tools app,events
```
#### Using Development Installation
```bash
# Start with all tools enabled (default)
uv run src/core/server.py --transport streamable-http
# Start with debug logging
uv run src/core/server.py --transport streamable-http --debug
# Start with a specific log level
uv run src/core/server.py --transport streamable-http --log-level WARNING
# Start with specific tool and prompts categories only
uv run src/core/server.py --transport streamable-http --tools infra,events
# Start with custom port
uv run src/core/server.py --transport streamable-http --port 9000
# Combine options (specific log level, custom tools and prompts)
uv run src/core/server.py --transport streamable-http --log-level DEBUG --tools app,events
```
**Key Features of Streamable HTTP Mode:**
- Uses HTTP headers for authentication (no environment variables needed)
- Supports different credentials per request
- Better suited for shared environments
- MCP server default port: 8080
- MCP endpoint: `http://0.0.0.0:8080/mcp/`
### Starting in Stdio Mode
**Stdio mode** uses standard input/output for communication and requires environment variables for authentication.
#### Using CLI (PyPI Installation)
```bash
# Set environment variables first
export INSTANA_BASE_URL="https://your-instana-instance.instana.io"
export INSTANA_API_TOKEN="your_instana_api_token"
# Start the server (stdio is the default if no transport specified)
mcp-instana
# Or explicitly specify stdio mode
mcp-instana --transport stdio
```
#### Using Development Installation
```bash
# Set environment variables first
export INSTANA_BASE_URL="https://your-instana-instance.instana.io"
export INSTANA_API_TOKEN="your_instana_api_token"
# Start the server (stdio is the default if no transport specified)
uv run src/core/server.py
# Or explicitly specify stdio mode
uv run src/core/server.py --transport stdio
```
**Key Features of Stdio Mode:**
- Uses environment variables for authentication (can be set via `export` or `.env` file)
- Direct communication via stdin/stdout
- Required for certain MCP client configurations
### Tool Categories
You can optimize server performance by enabling only the tools and prompts categories you need:
#### Using CLI (PyPI Installation)
```bash
# List all available categories
mcp-instana --list-tools
# Enable specific categories
mcp-instana --transport streamable-http --tools infra,app
mcp-instana --transport streamable-http --tools events
```
#### Using Development Installation
```bash
# List all available categories
uv run src/core/server.py --list-tools
# Enable specific categories
uv run src/core/server.py --transport streamable-http --tools infra,app
uv run src/core/server.py --transport streamable-http --tools events
```
### SSL Certificate Verification
SSL certificate verification for outgoing Instana API calls is **enabled by default**. This applies to both **Streamable HTTP** and **Stdio** transport modes.
To disable SSL certificate verification (e.g. for environments with self-signed or internal certificates), use the `--verify-ssl` CLI option, the `INSTANA_SSL_VERIFY` environment variable, or the `sslVerify` key in `config.yaml`.
#### Using the CLI option
```bash
# Disable SSL verification
uv run src/core/server.py --verify-ssl false
# Explicitly enable (default behaviour, no flag needed)
uv run src/core/server.py --verify-ssl true
```
#### Using the environment variable
```bash
export INSTANA_SSL_VERIFY=false
uv run src/core/server.py
```
SSL verification is disabled when `INSTANA_SSL_VERIFY` is set to `0`, `false`, or `no` (case-insensitive). Any other value, or when the variable is unset, keeps verification **enabled**.
#### Using config.yaml (SaaS / Kubernetes deployments)
```yaml
# SSL verification for outbound API calls (default: true)
sslVerify: false
```
The `sslVerify` key is read by `start.sh` at startup and exported as `INSTANA_SSL_VERIFY`.
#### Using a custom CA bundle
When SSL verification is enabled, the system CA bundle is used by default. To use a custom CA certificate bundle, set `INSTANA_CA_BUNDLE`:
```bash
export INSTANA_SSL_VERIFY=true
export INSTANA_CA_BUNDLE=/path/to/ca-bundle.crt
uv run src/core/server.py
```
`INSTANA_CA_BUNDLE` is only used when SSL certificate verification is enabled.
> The server logs the effective SSL verification state at startup, so you can immediately confirm whether your environment variable, CLI flag, or config file setting was picked up.
## API Call Timeout
Every outgoing Instana API call is subject to a hard wall-clock timeout. If the Instana server does not respond within the deadline the call is cancelled and an error is returned immediately — no indefinitely hanging requests.
The default timeout is **180 seconds**. Override it with the `INSTANA_API_TIMEOUT` environment variable:
```bash
export INSTANA_API_TIMEOUT=60 # 60-second deadline
uv run src/core/server.py
```
`INSTANA_API_TIMEOUT` must be a positive integer (seconds). Non-integer or non-positive values are ignored and the 180-second default is used instead.
### Catalog Response Caching
The server caches catalog API responses (metrics, tags, and plugins) in-process to eliminate redundant round-trips. Catalog data is stable within a tenant — it only changes when new integrations are deployed — so responses are safe to reuse across the lifetime of a single server process.
**Default TTL: 30 minutes.** Each unique combination of tenant URL, method, and parameters gets its own independent cache slot. Error responses are never cached, so a transient network failure cannot poison the store.
For more details, check [here](./docs/CACHING.md)
### Verifying Server Status
Once started, you can verify the server is running:
**For Streamable HTTP mode:**
```bash
# Check MCP server
curl http://0.0.0.0:8080/mcp/
# Or with custom port
curl http://0.0.0.0:9000/mcp/
```
**For Stdio mode:**
The server will start and wait for stdin input from MCP clients.
### Common Startup Issues
**SSL / Certificate Issues:**
See the [SSL Certificate Verification](#ssl-certificate-verification) section above for configuration options. If you encounter SSL errors with verification enabled and are using macOS, ensure your Python environment has access to system certificates:
```bash
# macOS - Install certificates for Python
/Applications/Python\ 3.13/Install\ Certificates.command
```
**Port Already in Use:**
If port 8080 is already in use, specify a different port:
```bash
uv run src/core/server.py --transport streamable-http --port 9000
```
**Missing Dependencies:**
Ensure all dependencies are installed:
```bash
uv sync
```
## Setup and Usage
### Supported MCP Clients
| Client | Transports |
| :--- | :--- |
| [Bob IDE](./docs/mcp-clients/bob-ide.md)| `streamable http`, `stdio` |
| [Bob CLI](./docs/mcp-clients/bob-cli.md) | `streamable http`, `stdio` |
| [Claude Desktop](./docs/mcp-clients/claude-desktop.md) | `streamable http`, `stdio` |
| [Cursor IDE](./docs/mcp-clients/cursor-ide.md) | `streamable http`, `stdio` |
| [Kiro IDE](./docs/mcp-clients/kiro-ide.md)| `streamable http`, `stdio` |
| [Kiro CLI](./docs/mcp-clients/kiro-cli.md)| `streamable http`, `stdio` |
| [Github Copilot](./docs/mcp-clients/github-copilot.md) | `streamable http`, `stdio` |
| [Copilot CLI](./docs/mcp-clients/copilot-cli.md) | `streamable http`, `stdio` |
| [Mistral AI](./docs/mcp-clients/mistral-ai.md) | `streamable http` |
| [Gemini Cli](./docs/mcp-clients/gemini-cli.md) | `streamable http`, `stdio` |
### Connecting to Multiple Instana MCP Servers
You can configure your MCP client to connect to multiple instances. Below is a sample configuration:
```json
{
"mcpServers": {
"Instana MCP Server1": {
"command": "npx",
"args": [
"mcp-remote",
"http://0.0.0.0:8080/mcp/",
"--allow-http",
"--header",
"instana-base-url: ENV1_INSTANA_URL",
"--header",
"instana-api-token: ENV1_INSTANA_API_TOKEN"
]
},
"Instana MCP Server2": {
"command": "npx",
"args": [
"mcp-remote",
"http://0.0.0.0:8080/mcp/",
"--allow-http",
"--header",
"instana-base-url: ENV2_INSTANA_URL",
"--header",
"instana-api-token: ENV2_INSTANA_API_TOKEN"
]
}
}
}
```
To target a specific server, ensure that:
- The server is configured with the appropriate environment name in the MCP configuration (e.g. Instana MCP Server1)
- The prompt explicitly mentions the server/environment name.
The request will then be routed to the corresponding configured server. If no server/environment is explicitly mentioned in the prompt, MCP uses the first server defined in the configuration as the default server.
Note: If the requested server is down or unreachable, MCP behaves as expected and forwards the API failure. The user will receive the corresponding error returned by the API, indicating that the server is unavailable. MCP relies on the underlying API availability and does not perform automatic failover.
## Available Tools
| Tool | Category | Description |
|---------------------------------------------------------------|--------------------------------|------------------------------------------------------- |
| `manage_applications` | Application & Infrastructure | Unified tool for managing application metrics, alert configs, settings, and catalog |
| `manage_websites` | Website Monitoring | Unified smart router for website analyze, catalog, configuration, and advanced config operations |
| `manage_custom_dashboards` | Custom Dashboards | Unified tool for managing custom dashboard CRUD operations |
| `manage_infrastructure` | Infrastructure | Unified smart router for infrastructure analyze, catalog (`get_plugin_schema`), smart alert configurations and snapshot resource operations |
| `manage_automation` | Automation | Unified smart router for automation: browse action catalog and view execution history |
| `manage_events` | Events | Unified smart router for events monitoring: get event by ID, get events by IDs, Kubernetes events, agent monitoring events and all events |
| `manage_slo` | SLO Management | Unified smart router for SLO configurations, reports, alerts, and correction windows with intelligent timezone handling |
| `manage_releases` | Release Management | Unified smart router for release tracking: list releases with pagination and name filtering, get release details, create/update/delete releases with timezone support |
| `manage_maintenance_windows` | Maintenance Windows | Unified smart router for maintenance window lifecycle management: create, modify, close, and list maintenance windows with template support and ServiceNow integration |
| `manage_mobile_apps` | Mobile App Monitoring | Unified smart router for mobile app monitoring: analyze beacons, performance metrics, session replay, configuration, and alert management |
| `manage_synthetics` | Synthetic Monitoring | Unified smart router for synthetic monitoring: catalog, metrics, settings (read-only), and test playback results |
`manage_alert_channels` | Alert Channels | Unified smart router for alert channels: inspect and list outbound notification integrations (Webhooks, Slack, Teams, Email, PagerDuty, etc.) with automatic secret masking |
**For detailed tool documentation, capabilities, and technical reference, see [Tools & Examples](docs/TOOLS_AND_EXAMPLES.md)**
## Tool Filtering
By default, the MCP server exposes all available tools. To reduce the number of tools presented to your MCP client, lower resource usage, and limit API exposure, you can select which tool categories are loaded or visible.
**Available categories:** `app`, `infra`, `events`, `website`, `mobile_app`, `slo`, `synthetic`, `releases`, `maintenance_windows`, `automation`, `custom_dashboards`, `alert_channels`
| Method | Applies to | How it works |
|---|---|---|
| `--tools <categories>` | CLI (stdio and streamable HTTP) | **Allowlist**: load only the listed categories |
| `--omit-tools <categories>` | CLI (stdio and streamable HTTP) | **Denylist**: load everything except the listed categories |
| `select-tools` / `omit-tools` HTTP headers | Streamable HTTP only | Per-client filtering of the `tools/list` response, with no server restart and no effect on other clients |
Both options accept comma-separated category names and can be combined: the allowlist is applied first, then the denylist removes from it.
```bash
# Load only application and infrastructure tools
mcp-instana --tools app,infra --transport streamable-http
# Load everything except SLO and maintenance window tools
mcp-instana --omit-tools slo,maintenance_windows --transport streamable-http
# List all categories and their tools
mcp-instana --list-tools
```
For the full list of options, including stdio `mcp.json` configuration, per-client HTTP header examples, and usage with a development installation, see [Tool Filtering & Customizations](./docs/TOOLS_FILTERING_CUSTOMIZATIONS.md).
## Docker Deployment
The MCP Instana server can be deployed using Docker for production environments. The Docker setup is optimized for security, performance, and minimal resource usage.
### Building the Docker Image
#### **Prerequisites**
- Docker installed and running
- Access to the project source code
#### **Build and Run**
```bash
# Ensure you are in the mcp-instana directory of your repo
# Build the optimized production image
docker build -t mcp-instana:latest .
```
The above command would build the image using the instructions in the `Dockerfile`. The default port is `8080` and transport mode is `streamable-http`
```bash
# Run the container (credentials are supplied via HTTP headers at request time)
docker run -p 8080:8080 mcp-instana
```
If you want to use a custom port on your host (ex: 9000)
```bash
# Run with a custom host port
docker run -p 9000:8080 mcp-instana
```
### Connecting to mcp-instana container in streamable mode
Assuming your started your container using the command: `docker run -p 8080:8080 mcp-instana`
Your MCP Client would connect to the Host port (8080). By default, the container runs in streamable mode.
Here is a sample configuration for your MCP client:
```
{
"mcpServers": {
"Instana MCP Server": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8080/mcp",
"--allow-http",
"--header",
"instana-base-url: https://your-instana-instance.instana.io",
"--header",
"instana-api-token: your_instana_api_token"
]
}
}
}
```
### Connecting to mcp-instana in stdio mode
In stdio mode, you can have your MCP Client to start and connect to the container. Here you are explicitly specifying to run in `stdio` by providing a value for the `--transport` flag.
Below is a sample configuration:
```
{
"mcpServers": {
"Instana MCP Server": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "INSTANA_API_TOKEN=your_instana_api_token",
"-e", "INSTANA_BASE_URL=https://your-instana-instance.instana.io",
"mcp-instana",
"--transport", "stdio"
]
}
}
}
```
For more details, check the Docker deployment guide [here](/DOCKER.md)
**For comprehensive Docker documentation including multi-architecture builds, `.dockerignore`, security best practices, and production deployment examples, see [DOCKER.md](DOCKER.md).**
## **General Issues**
- **GitHub Copilot**
- If you encounter issues with GitHub Copilot, try starting/stopping/restarting the server in the `mcp.json` file and keep only one server running at a time.
- **Certificate Issues**
- If you encounter certificate issues, such as `[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate`:
- Check that you can reach the Instana API endpoint using `curl` or `wget` with SSL verification.
- If that works, your Python environment may not be able to verify the certificate and might not have access to the same certificates as your shell or system. Ensure your Python environment uses system certificates (macOS). You can do this by installing certificates to Python:
`/Applications/Python\ 3.13/Install\ Certificates.command`
- If you cannot reach the endpoint with SSL verification, try without it. If that works, check your system's CA certificates and ensure they are up-to-date.TDQS
Scored across 12 tools
Each tool maps to a distinct Instana domain (mobile apps, websites, synthetics, infrastructure, applications, SLO, events, etc.), so boundaries are mostly clear. However, several tools may be confused: manage_applications vs manage_infrastructure both handle LLM/GenAI data, and alert configs appear in multiple domain tools, which the descriptions explicitly need to disambiguate with routing notes.
All 12 tools follow a single, rigid 'manage_<domain>' convention (manage_mobile_apps, manage_synthetics, manage_websites, manage_infrastructure, etc.). No deviation in casing or verb style; predictable and easy to reason about.
12 tools sits squarely in the ideal 3-15 range, and each tool owns a distinct monitoring domain, so none feels redundant or trivial. The per-tool operation sub-surfaces (analyze, catalog, configuration, etc.) are a deliberate design, not bloat at the tool level.
The surface is broad and lifecycle-rich for most domains: CRUD on SLOs, releases, dashboards, maintenance windows, and alert configs for synthetics/applications/infrastructure. Gaps exist: alert channels are read-only (no create/update), automation has no action execution, and mobile/website configuration is read-only — all noted as UI limitations, so agents can partially work around them.