Skip to main content

Codemagic MCP Server


License: MIT Python 3.10+ Platform Build Status


A lightweight, community-maintained Model Context Protocol (MCP) server that provides seamless access to Codemagic CI/CD APIs. Built for agents, AI-native workflows, and for use of MCP-compatible clients.


🌐 How can you use this

You: What applications do I have on Codemagic?
Assistant: calls get_all_applications() and displays the list.

You: Start a new build for my Flutter app
Assistant: calls start_build() with appropriate parameters

You: Can you get the artifacts from my last build?
Assistant: calls get_builds() to find the latest build and then get_artifact() to download the files

You: Show me the cache usage for my app
Assistant: calls get_app_caches() and displays storage information


🌐 Getting started

1. Clone this repository

git clone https://github.com/stefanoamorelli/codemagic-mcp.git
cd codemagic-mcp

2. Set up your API key

Follow the official documentation.

3. Install the MCP server in your client

For example, for Claude Desktop:

{
  "mcpServers": {
    "Codemagic MCP Server": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "--with",
        "requests",
        "mcp",
        "run",
        "<global_path_to_the_cloned_repo>/codemagic_mcp/server.py"
      ],
      "env": {
        "PYTHONPATH": "<global_path_to_the_cloned_repo>/",
        "CODEMAGIC_API_KEY": "your-api-key-here"
      }
    },
}

📈 What this server can do

Interact with Codemagic CI/CD using natural language.

API Category Tools
Applications API get_all_applications, get_application, add_application, add_application_private
Artifacts API get_artifact, create_public_artifact_url
Builds API start_build, get_builds, get_build_status, cancel_build
Caches API get_app_caches, delete_all_app_caches, delete_app_cache
Teams API invite_team_member, delete_team_member

🛠️ Development

Run the server locally for testing:

mcp dev codemagic_mcp/server.py

📚 References


📜 License

MIT License © 2025 Stefano Amorelli

Metadata

Release files for iflow-mcp_stefanoamorelli_codemagic-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_stefanoamorelli_codemagic-mcp 0.1.0
File Size Uploaded
iflow_mcp_stefanoamorelli_codemagic_mcp-0.1.0.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_stefanoamorelli_codemagic-mcp 0.1.0
File Interpreter ABI Platform
iflow_mcp_stefanoamorelli_codemagic_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / iflow_mcp_stefanoamorelli_codemagic_mcp-0.1.0.tar.gz

Download URL iflow_mcp_stefanoamorelli_codemagic_mcp-0.1.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
25be2d36fdb86e6d0b78f33d952e36ceefe0b7a89d3d713916f694a39afe8b84
BLAKE2b-256 checksum
How to use checksums
8999a07bc963f5420d21264ea10790c732718f2a8b4b9c4596a7cc71117d405f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_stefanoamorelli_codemagic_mcp-0.1.0-py3-none-any.whl

Download URL iflow_mcp_stefanoamorelli_codemagic_mcp-0.1.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52e7ac8b59c9ed82150dc950308970eef54bd3a42bb47d0a9a055c74c15d50bf
BLAKE2b-256 checksum
How to use checksums
ffbf46aa68eb40850f0e4fb8f21fc3958713334ead44bde15b745b8a4cb2b14b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page