T

Teamcity

by desty2k · io.github.desty2k/teamcity

Enables AI agents to explore a JetBrains TeamCity server through 29 strictly read-only tools covering projects, build configurations, build history and dependency chains, logs, test results, failure diagnostics, the queue, agents, artifacts, and VCS changes. All access is GET-only, so agents can inspect and troubleshoot CI without triggering, canceling, or modifying anything.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-desty2k-teamcity": {
      "command": "uvx",
      "args": [
        "readonly-mcp-teamcity"
      ],
      "env": {
        "TEAMCITY_BASE_URL": "<VALUE>",
        "TEAMCITY_TOKEN": "<YOUR_VALUE>",
        "TEAMCITY_TIMEOUT": "30",
        "TEAMCITY_HTTP_HOST": "127.0.0.1",
        "TEAMCITY_HTTP_PORT": "8080",
        "TEAMCITY_LOG_LEVEL": "INFO",
        "TEAMCITY_MAX_LIMIT": "500",
        "TEAMCITY_TRANSPORT": "stdio",
        "TEAMCITY_LOG_FORMAT": "json",
        "TEAMCITY_MAX_RETRIES": "3",
        "TEAMCITY_OTEL_ENABLED": "false",
        "TEAMCITY_DEFAULT_LIMIT": "50",
        "TEAMCITY_LOG_CACHE_TTL": "300",
        "TEAMCITY_OTEL_ENDPOINT": "<VALUE>",
        "TEAMCITY_OTEL_PROTOCOL": "grpc",
        "TEAMCITY_OTEL_SERVICE_NAME": "readonly-mcp-teamcity",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>",
        "TEAMCITY_LOG_CACHE_MAX_BYTES": "67108864",
        "TEAMCITY_OTEL_CONSOLE_EXPORT": "false",
        "TEAMCITY_POOL_MAX_CONNECTIONS": "20",
        "TEAMCITY_INDEX_REFRESH_INTERVAL": "300"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-desty2k-teamcity": {
      "command": "uvx",
      "args": [
        "readonly-mcp-teamcity"
      ],
      "env": {
        "TEAMCITY_BASE_URL": "<VALUE>",
        "TEAMCITY_TOKEN": "<YOUR_VALUE>",
        "TEAMCITY_TIMEOUT": "30",
        "TEAMCITY_HTTP_HOST": "127.0.0.1",
        "TEAMCITY_HTTP_PORT": "8080",
        "TEAMCITY_LOG_LEVEL": "INFO",
        "TEAMCITY_MAX_LIMIT": "500",
        "TEAMCITY_TRANSPORT": "stdio",
        "TEAMCITY_LOG_FORMAT": "json",
        "TEAMCITY_MAX_RETRIES": "3",
        "TEAMCITY_OTEL_ENABLED": "false",
        "TEAMCITY_DEFAULT_LIMIT": "50",
        "TEAMCITY_LOG_CACHE_TTL": "300",
        "TEAMCITY_OTEL_ENDPOINT": "<VALUE>",
        "TEAMCITY_OTEL_PROTOCOL": "grpc",
        "TEAMCITY_OTEL_SERVICE_NAME": "readonly-mcp-teamcity",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>",
        "TEAMCITY_LOG_CACHE_MAX_BYTES": "67108864",
        "TEAMCITY_OTEL_CONSOLE_EXPORT": "false",
        "TEAMCITY_POOL_MAX_CONNECTIONS": "20",
        "TEAMCITY_INDEX_REFRESH_INTERVAL": "300"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-desty2k-teamcity": {
      "command": "uvx",
      "args": [
        "readonly-mcp-teamcity"
      ],
      "env": {
        "TEAMCITY_BASE_URL": "<VALUE>",
        "TEAMCITY_TOKEN": "<YOUR_VALUE>",
        "TEAMCITY_TIMEOUT": "30",
        "TEAMCITY_HTTP_HOST": "127.0.0.1",
        "TEAMCITY_HTTP_PORT": "8080",
        "TEAMCITY_LOG_LEVEL": "INFO",
        "TEAMCITY_MAX_LIMIT": "500",
        "TEAMCITY_TRANSPORT": "stdio",
        "TEAMCITY_LOG_FORMAT": "json",
        "TEAMCITY_MAX_RETRIES": "3",
        "TEAMCITY_OTEL_ENABLED": "false",
        "TEAMCITY_DEFAULT_LIMIT": "50",
        "TEAMCITY_LOG_CACHE_TTL": "300",
        "TEAMCITY_OTEL_ENDPOINT": "<VALUE>",
        "TEAMCITY_OTEL_PROTOCOL": "grpc",
        "TEAMCITY_OTEL_SERVICE_NAME": "readonly-mcp-teamcity",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>",
        "TEAMCITY_LOG_CACHE_MAX_BYTES": "67108864",
        "TEAMCITY_OTEL_CONSOLE_EXPORT": "false",
        "TEAMCITY_POOL_MAX_CONNECTIONS": "20",
        "TEAMCITY_INDEX_REFRESH_INTERVAL": "300"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-desty2k-teamcity": {
      "command": "uvx",
      "args": [
        "readonly-mcp-teamcity"
      ],
      "env": {
        "TEAMCITY_BASE_URL": "<VALUE>",
        "TEAMCITY_TOKEN": "<YOUR_VALUE>",
        "TEAMCITY_TIMEOUT": "30",
        "TEAMCITY_HTTP_HOST": "127.0.0.1",
        "TEAMCITY_HTTP_PORT": "8080",
        "TEAMCITY_LOG_LEVEL": "INFO",
        "TEAMCITY_MAX_LIMIT": "500",
        "TEAMCITY_TRANSPORT": "stdio",
        "TEAMCITY_LOG_FORMAT": "json",
        "TEAMCITY_MAX_RETRIES": "3",
        "TEAMCITY_OTEL_ENABLED": "false",
        "TEAMCITY_DEFAULT_LIMIT": "50",
        "TEAMCITY_LOG_CACHE_TTL": "300",
        "TEAMCITY_OTEL_ENDPOINT": "<VALUE>",
        "TEAMCITY_OTEL_PROTOCOL": "grpc",
        "TEAMCITY_OTEL_SERVICE_NAME": "readonly-mcp-teamcity",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>",
        "TEAMCITY_LOG_CACHE_MAX_BYTES": "67108864",
        "TEAMCITY_OTEL_CONSOLE_EXPORT": "false",
        "TEAMCITY_POOL_MAX_CONNECTIONS": "20",
        "TEAMCITY_INDEX_REFRESH_INTERVAL": "300"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-desty2k-teamcity": {
      "command": "uvx",
      "args": [
        "readonly-mcp-teamcity"
      ],
      "env": {
        "TEAMCITY_BASE_URL": "<VALUE>",
        "TEAMCITY_TOKEN": "<YOUR_VALUE>",
        "TEAMCITY_TIMEOUT": "30",
        "TEAMCITY_HTTP_HOST": "127.0.0.1",
        "TEAMCITY_HTTP_PORT": "8080",
        "TEAMCITY_LOG_LEVEL": "INFO",
        "TEAMCITY_MAX_LIMIT": "500",
        "TEAMCITY_TRANSPORT": "stdio",
        "TEAMCITY_LOG_FORMAT": "json",
        "TEAMCITY_MAX_RETRIES": "3",
        "TEAMCITY_OTEL_ENABLED": "false",
        "TEAMCITY_DEFAULT_LIMIT": "50",
        "TEAMCITY_LOG_CACHE_TTL": "300",
        "TEAMCITY_OTEL_ENDPOINT": "<VALUE>",
        "TEAMCITY_OTEL_PROTOCOL": "grpc",
        "TEAMCITY_OTEL_SERVICE_NAME": "readonly-mcp-teamcity",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>",
        "TEAMCITY_LOG_CACHE_MAX_BYTES": "67108864",
        "TEAMCITY_OTEL_CONSOLE_EXPORT": "false",
        "TEAMCITY_POOL_MAX_CONNECTIONS": "20",
        "TEAMCITY_INDEX_REFRESH_INTERVAL": "300"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-desty2k-teamcity": {
      "command": "uvx",
      "args": [
        "readonly-mcp-teamcity"
      ],
      "env": {
        "TEAMCITY_BASE_URL": "<VALUE>",
        "TEAMCITY_TOKEN": "<YOUR_VALUE>",
        "TEAMCITY_TIMEOUT": "30",
        "TEAMCITY_HTTP_HOST": "127.0.0.1",
        "TEAMCITY_HTTP_PORT": "8080",
        "TEAMCITY_LOG_LEVEL": "INFO",
        "TEAMCITY_MAX_LIMIT": "500",
        "TEAMCITY_TRANSPORT": "stdio",
        "TEAMCITY_LOG_FORMAT": "json",
        "TEAMCITY_MAX_RETRIES": "3",
        "TEAMCITY_OTEL_ENABLED": "false",
        "TEAMCITY_DEFAULT_LIMIT": "50",
        "TEAMCITY_LOG_CACHE_TTL": "300",
        "TEAMCITY_OTEL_ENDPOINT": "<VALUE>",
        "TEAMCITY_OTEL_PROTOCOL": "grpc",
        "TEAMCITY_OTEL_SERVICE_NAME": "readonly-mcp-teamcity",
        "OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>",
        "TEAMCITY_LOG_CACHE_MAX_BYTES": "67108864",
        "TEAMCITY_OTEL_CONSOLE_EXPORT": "false",
        "TEAMCITY_POOL_MAX_CONNECTIONS": "20",
        "TEAMCITY_INDEX_REFRESH_INTERVAL": "300"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
TEAMCITY_BASE_URL Yes TeamCity server base URL (e.g. https://teamcity.example.com).
TEAMCITY_TOKEN secret Yes REST API bearer token. Scope it read-only on the TeamCity side if possible.
TEAMCITY_TIMEOUT No HTTP request timeout (seconds). Default: 30
TEAMCITY_HTTP_HOST No Bind address for http/sse. These transports have no authentication; a non-loopback address logs a warning. Default: 127.0.0.1
TEAMCITY_HTTP_PORT No Port for the http/sse transports. Default: 8080
TEAMCITY_LOG_LEVEL No Log level: DEBUG, INFO, WARNING, or ERROR. Default: INFO
TEAMCITY_MAX_LIMIT No Maximum page size. Default: 500
TEAMCITY_TRANSPORT No Transport: stdio, http, or sse. Default: stdio
TEAMCITY_LOG_FORMAT No Log format: json (production) or text (local dev). Default: json
TEAMCITY_MAX_RETRIES No Retries for transient network / 5xx errors. Default: 3
TEAMCITY_OTEL_ENABLED No Master switch for OpenTelemetry tracing. Default: false
TEAMCITY_DEFAULT_LIMIT No Default page size for list tools. Default: 50
TEAMCITY_LOG_CACHE_TTL No Seconds a finished build's log stays cached. Default: 300
TEAMCITY_OTEL_ENDPOINT No OTLP collector endpoint. Falls back to OTEL_EXPORTER_OTLP_ENDPOINT when unset.
TEAMCITY_OTEL_PROTOCOL No OTLP protocol: grpc or http/protobuf. Default: grpc
TEAMCITY_OTEL_SERVICE_NAME No service.name on every span. Default: readonly-mcp-teamcity
OTEL_EXPORTER_OTLP_ENDPOINT No Fallback OTLP collector endpoint used when TEAMCITY_OTEL_ENDPOINT is unset.
TEAMCITY_LOG_CACHE_MAX_BYTES No Size cap of the build-log cache. Logs of running builds are never cached. Default: 67108864
TEAMCITY_OTEL_CONSOLE_EXPORT No Also print spans to stderr. Default: false
TEAMCITY_POOL_MAX_CONNECTIONS No httpx connection-pool size. Default: 20
TEAMCITY_INDEX_REFRESH_INTERVAL No Seconds between fuzzy-index refreshes. A failed load is retried sooner. Default: 300

Similar servers