Logo MCP 服务器 for IBM Instana

MCP 服务器 for IBM Instana

Tổ chức
instana

MCP Server for Instana

Nhà phát hànhinstana
Kho mãmcp-instana
Ngôn ngữPython
Bản fork
33
Sao
26
Công cụ có sẵn
0
Phương thức truyền tảistdio, streamable-http
Danh mục
Giấy phépApache-2.0
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    MCP 服务器 for IBM Instana cung cấp các chức năng MCP cho các ứng dụng khách AI và tác nhân AI tương thích.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Mẫu cấu hình có thể sao chép ngay

    Dùng các đoạn cấu hình mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Mức độ quan tâm của cộng đồng đến kho mã

    26 sao và 33 bản fork từ kho mã được liên kết.

Table of Contents

MCP Server for IBM Instana

Quick Links


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.

Architecture Overview

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

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.

Setting Up the Environment

After installing uv, set up the project environment by running:

shell
uv sync

Header-Based Authentication for Streamable HTTP Mode

When using Streamable HTTP mode, you must pass Instana credentials via HTTP headers. This approach enhances security and flexibility by:

  • Avoiding credential storage in environment variables
  • Enabling the use of different credentials for different requests
  • Supporting shared environments where environment variable modification is restricted
  • Supporting both API token and session-based authentication

Supported Authentication Modes:

1. API Token Authentication (Direct API Calls)

Required Headers:

  • instana-base-url: Your Instana instance URL
  • 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"

2. Session Token Authentication (UI-Initiated Calls)

Required Headers:

  • instana-base-url: Your Instana instance URL
  • instana-auth-token: Session authentication token from UI backend
  • instana-csrf-token: CSRF token from UI backend
  • instana-cookie-name: (Optional) Cookie name for session auth (default: instanaAuthToken)

Example:

bash
--header "instana-base-url: https://your-instance.instana.io"
--header "instana-auth-token: your-session-token"
--header "instana-csrf-token: your-csrf-token"
--header "instana-cookie-name: in-token"

3. JWT Token Authentication (IBM Platform Integration)

Required Headers:

  • instana-base-url: Your Instana instance URL
  • instana-jwt-token: JWT token from IBM Platform
  • instana-csrf-token: CSRF token for request validation

Example Configuration:

json
{
  "mcpServers": {
    "Instana MCP Server": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://0.0.0.0:8080/mcp",
        "--allow-http",
        "--header",
        "instana-base-url: https://your-instana-instance.instana.io",
        "--header",
        "instana-jwt-token: your_jwt_token_here",
        "--header",
        "instana-csrf-token: your_csrf_token_here"
      ]
    }
  }
}

Authentication Priority:

  1. JWT Token (if provided with CSRF token) - Takes precedence for IBM Platform integration
  2. Session Tokens (if both auth_token and csrf_token provided)
  3. API Token (if provided) - Standard authentication
  4. Environment Variable (INSTANA_API_TOKEN) - Fallback

Authentication Flow:

  1. HTTP headers must be present in each request
  2. Server validates credentials based on priority order
  3. Requests without valid authentication will fail

This design ensures secure credential transmission and supports multiple authentication flows including UI-initiated calls via WebSocket → Coordinator → MCP Server.

Ensure that the token used has the necessary permissions to invoke MCP tools. Check here 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)
  • --env KEY=VALUE: Set environment variable (can be repeated for multiple variables, e.g., --env INSTANA_BASE_URL=https://... --env INSTANA_API_TOKEN=...)
  • --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)
  • --verify-ssl: Enable SSL certificate verification for outgoing Instana API calls. Equivalent to setting INSTANA_SSL_VERIFY=true. SSL verification is disabled by default.
  • --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
# Option 1: 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

# Option 2: Pass the base url and api token directly 
mcp-instana --base-url https://your-instana-instance.instana.io --api-token your_instana_api_token

# Or with explicit stdio mode
mcp-instana --transport stdio --base-url https://your-instana-instance.instana.io --api-token your_instana_api_token

Using Development Installation

bash
# Option 1: 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

# Option 2: Pass the base url and api token directly 
uv run src/core/server.py --base-url https://your-instana-instance.instana.io --api-token your_instana_api_token

# Or with explicit stdio mode
uv run src/core/server.py --transport stdio --base-url https://your-instana-instance.instana.io --api-token your_instana_api_token

Key Features of Stdio Mode:

  • Uses environment variables for authentication (can be set via export or --env flags)
  • Direct communication via stdin/stdout
  • Required for certain MCP client configurations
  • The --api-token and base-url flags provides a convenient way to set credentials without modifying shell environment

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 disabled by default. This applies to both Streamable HTTP and Stdio transport modes.

To enable SSL certificate verification, use either the --verify-ssl CLI option or the INSTANA_SSL_VERIFY environment variable.

Using the CLI option

bash
uv run src/core/server.py --verify-ssl

The --verify-ssl option is equivalent to setting:

bash
export INSTANA_SSL_VERIFY=true

Using the environment variable

bash
export INSTANA_SSL_VERIFY=true
uv run src/core/server.py

SSL verification is disabled when INSTANA_SSL_VERIFY is set to 0, false, or no (case-insensitive), or left unset. Any other value enables verification — use true, 1, or yes as the conventional choices.

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 or CLI flag was picked up.

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 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

ClientTransports
Bob IDEstreamable http, stdio
Claude Desktopstreamable http, stdio
Kiro IDEstreamable http, stdio
Kiro CLIstreamable http, stdio
Github Copilotstreamable http, stdio
Mistral AIstreamable http

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.

Supported Features

  • Unified Application Management (manage_applications)
    • Application Metrics (resource_type="metrics")
      • Query application metrics with flexible filtering
      • Group by tags and aggregate metrics
    • Application Alert Configuration (resource_type="alert_config")
      • Find active alert configurations
      • Get alert configuration versions
      • Create, update, and delete alert configurations
      • Enable, disable, and restore alert configurations
      • Update historic baselines
    • Global Application Alert Configuration (resource_type="global_alert_config")
      • Manage global alert configurations
      • Version control for global alerts
    • Application Settings (resource_type="settings")
      • Manage application perspectives
    • Application Resources (resource_type="resources")
      • List application perspectives (operation="get_applications")
      • List services across all applications (operation="get_services")
      • List services for a specific application (operation="get_application_services")
      • List endpoints for an application service (operation="get_application_endpoints")
    • Application Catalog (resource_type="catalog")
      • Get application tag catalog
      • Get application metric catalog
    • Application Analyze (resource_type="analyze")
      • Get all traces with filtering and pagination (operation="get_all_traces")
      • Get trace details by ID (operation="get_trace_details")
      • Get grouped trace metrics (operation="get_trace_groups")
  • Unified Infrastructure Management (manage_infrastructure)
    • Infrastructure Analyze (resource_type="analyze")
      • Get individual infrastructure entities with metrics (operation="get_entities")
      • Get grouped infrastructure entities with aggregated metrics (operation="get_entity_groups")
      • Auto-routing based on payload: groupBy present → get_entity_groups, absent → get_entities
      • Flexible metric aggregation (MAX, MEAN, MIN, SUM)
      • Advanced filtering by tags and properties
      • Grouping and ordering capabilities
      • Time range queries
    • Infrastructure Catalog (resource_type="catalog")
      • Get all available entity types/plugins in your Instana installation (operation="get_plugins")
      • Get combined metrics and tags schema for a plugin in one call (operation="get_plugin_schema")
      • Get infrastructure metrics catalog for a specific plugin (operation="get_metrics")
      • Get valid tag names for filtering and grouping (operation="get_tag_catalog")
      • Dynamic support for all entity types (JVM, Kubernetes, Docker, hosts, databases, message queues, and more)
      • Automatically synchronized with your Instana installation's available plugins
    • Infrastructure Resources (resource_type="resources")
      • Get detailed information for a specific snapshot (operation="get_snapshot")
      • Search and discover multiple snapshots matching criteria (operation="get_snapshots")
  • Unified Events Management (manage_events)
    • Events Monitoring
      • Get Event by ID (operation="get_event")
      • Get Events by IDs (operation="get_events_by_ids")
      • Get Agent Monitoring Events (operation="get_agent_monitoring_events")
      • Get Kubernetes Info Events (operation="get_kubernetes_info_events")
      • Get Events (operation="get_events")
    • Smart routing to specialized event tools
    • Unified parameter validation (time ranges, max_events)
    • Support for natural language time ranges ("last 24 hours", "last 2 days")
    • Event filtering and optimization
  • Mobile App Monitoring (manage_mobile_apps)
    • Mobile App Analyze (resource_type="analyze")
      • Get individual mobile app beacons (operation="get_all_mobile_app_beacons")
      • Get grouped/aggregated mobile app beacon metrics (operation="get_mobile_app_beacon_groups")
      • Supports beacon types: SESSION_START, VIEW_CHANGE, HTTP_REQUEST, CUSTOM, CRASH, PERF, DROP_BEACON
    • Mobile App Catalog (resource_type="catalog")
      • Get mobile app metrics catalog (operation="get_mobile_app_metric_catalog")
      • Get mobile app tag catalog by beacon type and use case (operation="get_mobile_app_tag_catalog")
    • Mobile App Configuration (resource_type="configuration")
      • Get all mobile apps (operation="get_all")
      • Get mobile app by ID or name (operation="get")
    • Advanced Configuration - READ ONLY (resource_type="advanced_config")
      • Get Geo-Location Configuration (operation="get_geo_config")
      • Get IP Masking Configuration (operation="get_ip_masking")
      • Get Geo Mapping Rules (operation="get_geo_rules")
      • Get Source Map Upload Configuration (operation="get_source_map_upload_config")
      • Get Source Map Upload Configuration by ID (operation="get_mobile_app_source_map_upload_config_by_id")
    • Mobile App Alert (resource_type="alert")
      • Find active mobile app alert configurations (operation="find_active_mobile_app_alert_configs")
      • Get mobile app alert configuration by ID (operation="find_mobile_app_alert_config")
    • Session Replay (resource_type="session_replay")
      • Get paginated session replay action beacons by mobile app ID and session ID (operation="get_session_replay_action_beacons")
      • Cursor-based pagination (cursor, page_size, hasMore)
  • Unified Website Management (manage_websites)
    • Website Analyze (resource_type="analyze")
      • Get Website Beacon Groups - grouped/aggregated beacon data (operation="get_beacon_groups")
      • Get Website Beacons - individual beacon data with pagination (operation="get_beacons")
      • Automatic tag validation and catalog-based elicitation workflow
      • Response summarization (70-80% payload reduction)
      • Support for multiple beacon types: PAGELOAD, PAGECHANGE, RESOURCELOAD, CUSTOM, HTTPREQUEST, ERROR
    • Website Catalog (resource_type="catalog")
      • Get Website Metrics Catalog (operation="get_metrics")
      • Get Website Tag Catalog by beacon type and use case (operation="get_tag_catalog")
    • Website Configuration (resource_type="configuration")
      • Get All Websites (operation="get_all")
      • Get Website by ID or name with automatic name resolution (operation="get")
    • Advanced Configuration - READ ONLY (resource_type="advanced_config")
      • Get Geo-Location Configuration (operation="get_geo_config")
      • Get IP Masking Configuration (operation="get_ip_masking")
      • Get Geo Mapping Rules (operation="get_geo_rules")
  • Unified Automation Management (manage_automation)
    • Action Catalog (resource_type="catalog")
      • List all available automation actions (operation="get_actions")
      • Get detailed information about a specific action (operation="get_action_details")
      • Search for matching actions by name/description (operation="get_action_matches")
      • Get action matches by application or snapshot ID and time window (operation="get_action_matches_by_id_and_time_window")
      • Get available action types (operation="get_action_types")
      • Get available action tags (operation="get_action_tags")
    • Action History (resource_type="history")
      • List action execution instances with filtering (operation="list")
      • Get details of a specific action execution (operation="get_details")
  • Unified Synthetic Monitoring (manage_synthetics)
    • Synthetic Catalog (resource_type="catalog")
      • Get available metrics with supported aggregations for query planning (operation="get_synthetic_catalog_metrics")
      • Get valid tag names for filtering, grouping, and smart alerts (operation="get_synthetic_tag_catalog")
    • Synthetic Metrics (resource_type="metrics")
      • Retrieve aggregated synthetic metrics grouped by location or test name (operation="get_metrics_result")
    • Synthetic Settings (resource_type="settings")
      • Get a synthetic test's full configuration by ID or name (operation="get_synthetic_test")
      • List synthetic tests with optional filtering by application, location, or credential (operation="get_synthetic_tests")
      • List all monitoring locations with type, geo, and capability metadata (operation="get_locations")
      • Get a single location by ID or name with automatic name resolution (operation="get_location_by_id")
      • Get all datacenter (Managed) locations with online count (operation="get_all_datacenters")
    • Synthetic Test Playback (resource_type="test_playback")
      • Get aggregated playback metrics per test (operation="get_synthetic_result")
      • Get the most recent result per test using LAST_VALUE analytic (operation="get_synthetic_result_analytic")
      • Get individual test run results with raw status, errors, and timestamps (operation="get_synthetic_result_list")
      • Get location-level summary metadata including last run time and PoP version (operation="get_location_summary_list")
      • Get per-test success rates with per-location breakdown (operation="get_test_summary_list")
      • Get available detail data types for a specific test result (operation="get_synthetic_result_metadata")
      • Get detail data file contents such as logs, HAR, or screenshots (operation="get_synthetic_result_detail_data")
  • Custom Dashboards (manage_custom_dashboards)
    • Get all custom dashboards
    • Get specific dashboard by ID
    • Create new custom dashboard
    • Update existing custom dashboard
    • Delete custom dashboard
    • Get shareable users for dashboard
    • Get shareable API tokens for dashboard
  • Unified SLO Management (manage_slo)
    • SLO Configuration (resource_type="configuration")
      • List and filter SLO configurations (operation="get_all")
      • Get SLO configuration by ID (operation="get_by_id")
      • Create SLO configuration (operation="create")
      • Update SLO configuration (operation="update")
      • Delete SLO configuration (operation="delete")
      • List SLO tags (operation="get_tags")
    • SLO Report (resource_type="report")
      • Generate SLO report with SLI value, error budget, and burn rate (operation="get")
    • SLO Alert Configuration (resource_type="alert")
      • Find active SLO alert configurations (operation="find_active")
      • Get SLO alert configuration by ID (operation="find")
      • Get SLO alert configuration versions (operation="find_versions")
      • Create, update, and delete SLO alert configurations
      • Enable, disable, and restore SLO alert configurations
    • SLO Correction Windows (resource_type="correction")
      • List correction windows (operation="get_all")
      • Get correction window by ID (operation="get_by_id")
      • Create, update, and delete correction windows
  • Releases Management (manage_releases)
    • List all releases with pagination and name filtering (operation="get_all_releases")
    • Get specific release by ID (operation="get_release")
    • Create new release with application and service scopes (operation="create_release")
    • Update existing release (operation="update_release")
    • Delete release (operation="delete_release")
  • Maintenance Window Management (manage_maintenance_windows)
    • Maintenance Window Lifecycle (resource_type="window")
      • Create maintenance window with template support (operation="create")
      • Modify existing maintenance window (operation="modify")
      • Close and document a maintenance window (operation="close")
      • List active, scheduled, expired, or all windows (operation="list_active", "list_scheduled", "list_expired", "list_all")
      • Bulk create windows for multiple applications (operation="bulk_create")
      • Validate maintenance window parameters (operation="validate")
      • Support for one-time and recurring windows (RFC 5545 RRULE)
    • Maintenance Window Templates (resource_type="templates")
      • Get predefined templates: deployment, database_migration, infrastructure_upgrade, emergency, routine (operation="get")

Available Tools

ToolCategoryDescription
manage_applicationsApplication & InfrastructureUnified tool for managing application metrics, alert configs, settings, and catalog
manage_websitesWebsite MonitoringUnified smart router for website analyze, catalog, configuration, and advanced config operations
manage_custom_dashboardsCustom DashboardsUnified tool for managing custom dashboard CRUD operations
manage_infrastructureInfrastructureUnified smart router for infrastructure analyze, catalog (get_plugin_schema), and snapshot resource operations
manage_automationAutomationUnified smart router for automation: browse action catalog and view execution history
manage_eventsEventsUnified smart router for events monitoring: get event by ID, get events by IDs, Kubernetes events, agent monitoring events and all events
manage_sloSLO ManagementUnified smart router for SLO configurations, reports, alerts, and correction windows with intelligent timezone handling
manage_releasesRelease ManagementUnified smart router for release tracking: list releases with pagination and name filtering, get release details, create/update/delete releases with timezone support
manage_maintenance_windowsMaintenance WindowsUnified smart router for maintenance window lifecycle management: create, modify, close, and list maintenance windows with template support and ServiceNow integration
manage_mobile_appsMobile App MonitoringUnified smart router for mobile app monitoring: analyze beacons, performance metrics, session replay, configuration, and alert management
manage_syntheticsSynthetic MonitoringUnified smart router for synthetic monitoring: catalog, metrics, settings (read-only), and test playback results

For detailed tool documentation, capabilities, and technical reference, see Tools & Examples

Tool Filtering

The MCP server supports selective tool loading to optimize performance and reduce resource usage. You can enable only the tool categories you need for your specific use case.

Available Tool Categories

  • app: Application monitoring and management

    • manage_applications: Unified smart router for application metrics, alert configurations, settings, catalog, resources, and trace analysis
    • Supports application perspectives, endpoints, services, and manual services
    • Manages both application-specific and global alert configurations
    • Provides access to application tag catalog and metric catalog
    • Analyzes application traces and call groups
  • infra: Infrastructure management tools

    • manage_infrastructure: Unified smart router for infrastructure analyze, catalog, and snapshot resource operations
    • get_plugin_schema combines get_metrics + get_tag_catalog into a single API call
    • Dynamically supports all entity types available in your Instana installation (automatically loaded from API catalog)
    • Includes JVM, Kubernetes, Docker, hosts, databases, message queues, and any custom or newly added entity types
    • Flexible metric aggregation, filtering, grouping, and time range queries
  • events: Event monitoring tools

    • manage_events: Unified smart router for all event monitoring operations
    • Get all events, individual events by ID, or multiple events by IDs
    • Kubernetes info events and agent monitoring events with detailed analysis
    • Flexible filtering by event type, entity type, severity, state, problem, and RCA availability
  • automation: Automation action tools

    • manage_automation: Unified smart router for automation catalog and execution history
    • Action Catalog: browse actions, get details, search by name/description, filter by application or snapshot ID
    • Action History: list execution instances with filtering, get execution details
  • website: Website monitoring tools

    • manage_websites: Unified smart router for website beacon monitoring, catalog, configuration, and alert operations
    • Website Analyze: Query beacon data with grouping or filtering
    • Website Catalog: Get available metrics and tags for website monitoring
    • Website Configuration: Retrieve website configurations (read-only; create/update/delete via Instana UI)
    • Website Alerts: Retrieve website alert configurations
  • settings: Custom dashboard management

    • manage_custom_dashboards: CRUD operations for custom dashboards
    • Supports dashboard creation, retrieval, updates, and deletion
    • Manages shareable users and API tokens for dashboards
  • slo: Service Level Objective (SLO) management

    • manage_slo: Unified smart router for comprehensive SLO operations
    • Configuration Management: Create, read, update, delete SLO configurations with support for time-based and event-based indicators
    • Report Generation: Generate detailed SLO reports with SLI values, error budgets, burn rates, and time-series charts
    • Alert Configuration: Manage SLO alert configs for error budget monitoring and burn rate tracking
    • Correction Windows: Create and manage maintenance windows to exclude planned downtime from SLO calculations
    • Intelligent Timezone Handling: Automatic timezone elicitation for datetime inputs to ensure accurate time context
    • Two-Pass Elicitation: Interactive parameter gathering for complex operations requiring multiple inputs
  • releases: Release tracking and deployment management

    • manage_releases: Unified smart router for release operations
    • List Releases: Get all releases with efficient pagination (page_number, page_size) and name-based filtering
    • Release Details: Retrieve specific release information by ID including applications, services, and scopes
    • Create/Update/Delete: Full CRUD operations for release management
    • Intelligent Timezone Handling: Automatic timezone elicitation for release start times
    • Efficient Pagination: Avoid redundant data fetching with proper page-based navigation
    • Name Filtering: Case-insensitive substring matching to find releases by name
  • maintenance: Maintenance window lifecycle management

    • manage_maintenance_windows: Unified smart router for maintenance window operations
    • Window Operations: Create, modify, close, and list maintenance windows (active, scheduled, all, expired)
    • Bulk Operations: Create maintenance windows for multiple applications simultaneously
    • Template Support: Predefined templates for common scenarios (deployment, database_migration, infrastructure_upgrade, emergency, routine)
    • Recurring Windows: Support for recurring maintenance windows using RFC 5545 RRULE format
    • ServiceNow Integration: Optional integration with ServiceNow change requests
    • Validation: Parameter validation before window creation
    • Flexible Duration: Specify duration in minutes, hours, or days
  • mobile_app: Mobile application monitoring

    • manage_mobile_apps: Unified smart router for mobile app monitoring operations
    • Session Replay: Retrieve paginated session replay action beacons by mobile app ID and session ID (resource_type="session_replay")
    • Beacon Analysis: Query mobile app beacon data with grouping and filtering
    • Performance Metrics: Track session duration, crash rates, and HTTP request performance
    • Geographic Analysis: Analyze user distribution by country, city, and region
    • Device Analysis: Monitor performance across different devices, platforms, and OS versions
    • Configuration Management: Manage mobile app configurations, geo-location, and IP masking settings
    • Alert Management: Configure and manage mobile app alert configurations
  • synthetic: Synthetic monitoring management

    • manage_synthetics: Unified smart router for all synthetic monitoring operations
    • Catalog: Discover valid metric IDs and tag names before building queries
    • Metrics: Retrieve aggregated response times and success rates grouped by location or test name
    • Settings: List and look up tests and locations with automatic name resolution; identify datacenter (Managed) vs self-hosted (Private) PoPs
    • Test Playback: Per-run raw results, LAST_VALUE analytics, per-location success rate summaries, and detail file downloads (LOGS, HAR, screenshots)

Usage Examples

Using CLI (PyPI Installation)

bash
# Enable only application monitoring tools
mcp-instana --tools app --transport streamable-http

# Enable only infrastructure analysis tools
mcp-instana --tools infra --transport streamable-http

# Enable application and infrastructure tools
mcp-instana --tools app,infra --transport streamable-http

# Enable events and website tools
mcp-instana --tools events,website --transport streamable-http

# Enable settings (custom dashboards) and app tools
mcp-instana --tools settings,app --transport streamable-http

# Enable releases and events tools
mcp-instana --tools releases,events --transport streamable-http

# Enable maintenance window and events tools
mcp-instana --tools maintenance,events --transport streamable-http

# Enable automation and app tools
mcp-instana --tools automation,app --transport streamable-http

# Enable SLO management tools
mcp-instana --tools slo --transport streamable-http

# Enable synthetic monitoring tools
mcp-instana --tools synthetic --transport streamable-http

# Enable mobile app monitoring tools
mcp-instana --tools mobile_app --transport streamable-http

# Enable all tools (default behavior)
mcp-instana --transport streamable-http

# List all available tool categories and their tools
mcp-instana --list-tools

Using Development Installation

bash
# Enable only application monitoring tools
uv run src/core/server.py --tools app --transport streamable-http

# Enable only infrastructure analysis tools
uv run src/core/server.py --tools infra --transport streamable-http

# Enable application and infrastructure tools
uv run src/core/server.py --tools app,infra --transport streamable-http

# Enable events and website tools
uv run src/core/server.py --tools events,website --transport streamable-http

# Enable settings (custom dashboards) and app tools
uv run src/core/server.py --tools settings,app --transport streamable-http

# Enable releases and events tools
uv run src/core/server.py --tools releases,events --transport streamable-http

# Enable maintenance window and events tools
uv run src/core/server.py --tools maintenance,events --transport streamable-http

# Enable automation and app tools
uv run src/core/server.py --tools automation,app --transport streamable-http

# Enable SLO management tools
uv run src/core/server.py --tools slo --transport streamable-http

# Enable synthetic monitoring tools
uv run src/core/server.py --tools synthetic --transport streamable-http

# Enable mobile app monitoring tools
uv run src/core/server.py --tools mobile_app --transport streamable-http

# Enable all tools (default behavior)
uv run src/core/server.py --transport streamable-http

# List all available tool categories and their tools
uv run src/core/server.py --list-tools

Benefits of Tool Filtering

  • Performance: Reduced startup time and memory usage
  • Security: Limit exposure to only necessary APIs
  • Clarity: Focus on specific use cases (e.g., only infrastructure monitoring)
  • Resource Efficiency: Lower CPU and network usage

For usage examples and prompts, see Example Prompts

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

For comprehensive Docker documentation including multi-architecture builds, .dockerignore, security best practices, and production deployment examples, see 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.

Cài đặt

TypingMind
Yêu cầu:

Node.js 18+

{
  "mcpServers": {
    "instana-mcp-instana": {
      "command": "",
      "args": []
    }
  }
}

Dùng MCP MCP 服务器 for IBM Instana với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối MCP 服务器 for IBM Instana, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. Bạn có thể chạy MCP ngay trên thiết bị của mình hoặc kết nối qua URL của máy chủ MCP từ xa.

Cách 1: Dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Thiết lập trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Thiết lập trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh thiết lập trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Để tiến trình tiếp tục chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Để tiến trình tiếp tục chạy trong cửa sổ Terminal khi bạn dùng các công cụ MCP.
3

Thêm MCP 服务器 for IBM Instana làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của MCP 服务器 for IBM Instana.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "instana-mcp-instana": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-instana"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của MCP 服务器 for IBM Instana, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của MCP 服务器 for IBM Instana.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện trên TypingMind dùng các công cụ MCP đã bật với mô hình AI đã chọn
Bạn có thể dùng MCP 服务器 for IBM Instana giúp tôi làm việc này không?
MCP 服务器 for IBM Instana
Được. Tôi đọc rồi.
Đây là kết quả tôi tìm được bằng MCP 服务器 for IBM Instana.

Cách 2: Thêm URL máy chủ MCP

Dùng cách này khi MCP 服务器 for IBM Instana đã chạy trên máy chủ từ xa hoặc nhóm của bạn muốn có một trình kết nối dùng chung cho nhiều người dùng.

1

Mở mục Trình kết nối MCP

Trong TypingMind, vào Plugin, mở mục Trình kết nối MCP, rồi chọn Thêm URL.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Vào mục Plugin.
  3. Mở mục Trình kết nối MCP.
  4. Nhấp vào Thêm URL.
Biểu mẫu Thêm URL máy chủ MCP tùy chỉnh của TypingMind
2

Dán URL máy chủ

Nhập URL máy chủ của bạn vào trường URL máy chủ. Thêm tên kết nối, mô tả, biểu tượng, header HTTP tùy chỉnh hoặc cài đặt ứng dụng khách OAuth nếu máy chủ yêu cầu.

  1. Dán URL máy chủ của bạn vào trường URL máy chủ.
  2. Nhập tên kết nối cho MCP 服务器 for IBM Instana.
  3. Thêm mô tả và biểu tượng nếu bạn muốn dễ nhận biết kết nối hơn.
  4. Thêm header HTTP tùy chỉnh hoặc thông tin ứng dụng khách OAuth nếu máy chủ yêu cầu xác thực.
3

Tạo kết nối

Nhấp vào Tạo kết nối, sau đó quay lại danh sách Plugin và xác nhận kết nối MCP mới đang hoạt động.

  1. Nhấp vào Tạo kết nối.
  2. Quay lại danh sách trình kết nối MCP.
  3. Xác nhận kết nối MCP 服务器 for IBM Instana hiển thị trạng thái đang hoạt động.
  4. Làm mới danh sách plugin nếu kết nối chưa xuất hiện ngay.
4

Đổi mô hình mà không cần kết nối lại

Bắt đầu cuộc trò chuyện với mô hình bạn thích, bật các công cụ của MCP 服务器 for IBM Instana trong mục Plugin và chuyển sang mô hình khác khi cần. Kết nối MCP vẫn sẵn dùng trong không gian làm việc TypingMind.

  1. Bắt đầu cuộc trò chuyện mới trong TypingMind.
  2. Chọn mô hình AI bạn muốn dùng.
  3. Bật các công cụ của MCP 服务器 for IBM Instana trong mục Plugin.
  4. Yêu cầu mô hình dùng công cụ khi cần.
  5. Chuyển sang mô hình AI khác và tiếp tục dùng kết nối MCP hiện có.
Cuộc trò chuyện trên TypingMind dùng các công cụ MCP đã bật với mô hình AI đã chọn
Bạn có thể dùng MCP 服务器 for IBM Instana giúp tôi làm việc này không?
MCP 服务器 for IBM Instana
Được. Tôi đọc rồi.
Đây là kết quả tôi tìm được bằng MCP 服务器 for IBM Instana.

Câu hỏi thường gặp

Máy chủ MCP MCP 服务器 for IBM Instana dùng để làm gì?

MCP 服务器 for IBM Instana là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP MCP 服务器 for IBM Instana với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng MCP 服务器 for IBM Instana với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP MCP 服务器 for IBM Instana với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối MCP 服务器 for IBM Instana, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP MCP 服务器 for IBM Instana với TypingMind?

Bạn có thể kết nối MCP 服务器 for IBM Instana trong TypingMind bằng trình kết nối MCP cục bộ hoặc bằng cách thêm URL máy chủ MCP từ xa. Dùng trình kết nối cục bộ khi máy chủ cần truy cập tệp, ứng dụng hoặc tài nguyên riêng trên thiết bị của bạn; dùng URL máy chủ khi máy chủ MCP được lưu trữ từ xa.

MCP MCP 服务器 for IBM Instana cung cấp những công cụ nào trong TypingMind?

MCP 服务器 for IBM Instana cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP MCP 服务器 for IBM Instana không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu MCP 服务器 for IBM Instana yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇