TeamCity MCP Server is a Model Context Protocol server for AI agents and IDE plugins, designed to transform JetBrains TeamCity's continuous integration and build management capabilities into structured tools and resources callable by LLMs. It implements the full JSON-RPC 2.0 protocol over HTTP/WebSocket and deeply integrates the TeamCity REST API, providing authentication, project and build configuration queries, build operations, artifact downloads, advanced search, and other features.
Main capabilities include:
- Resource access: Exposes projects, build types, builds, agents, and runtime information as MCP resources (such as teamcity://projects, teamcity://buildTypes, etc.).
- Build operations: Provides 10 tools covering triggering builds, canceling builds, pinning/unpinning builds, setting tags, downloading artifacts, searching builds, retrieving build logs, searching build configurations, getting the current time, and getting test results.
- Advanced search: Supports filtering builds by multiple dimensions such as status, branch, user, date, and tags, and supports paginated log retrieval (500 lines by default, with regex filtering, context lines, severity level filtering, etc.).
- Production-ready: Supports Docker and Kubernetes deployment, and provides health check endpoints, Prometheus metrics, caching, and detailed logging.
- Environment variable configuration: All configuration is done through environment variables, with no configuration file required.
Usage:
- Build the server (local development requires executing a build command; the specific command is not provided in the materials).
- Set the required environment variables (such as TC_URL, TC_TOKEN, etc.; the complete list of specific variables is not fully listed in the materials).
- Run the server and verify status through the health endpoint.
- Add the configuration in the MCP settings of an AI IDE such as Cursor to operate TeamCity with natural language instructions.
Applicable scenarios: Development teams in AI-assisted development environments need to quickly query build status, trigger builds, analyze failure causes, manage build artifacts, etc. Limitations: The materials do not provide specific installation commands, build step details, a complete list of environment variables, or pricing information; refer to the project repository for the latest instructions.