semaphore-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@semaphore-mcpshow my most recent tasks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
semaphore-mcp
A curated MCP server for Semaphore UI — drive your Ansible / Terraform automation from Claude with a safe, tiered tool surface: read freely, write deliberately, delete only with an explicit confirmation.
The token never passes through Claude's context — it's an environment variable on your machine. The exposed tool set is generated from Semaphore's own OpenAPI spec and guardrails deletes rather than pretending they don't exist.
Why generated, and why curated
Semaphore's API is 127 operations and ships empty operationIds, so a generic OpenAPI→MCP bridge produces unusable tool names.
generate.py solves that: it reads the pinned api-docs.yml, filters to a hand-picked allowlist, synthesises clean tool names, and derives readOnlyHint / destructiveHint annotations from each tool's declared tier. The result is 27 tools across three tiers:
Tier | Count |
|
| Guard |
read | 12 |
|
| safe to auto-allow |
write | 10 |
|
|
|
delete | 5 |
|
|
|
Covered resources: projects, templates, tasks, inventories, environments (vars), and repositories (create/update/delete — needed for branch-pinned testing).
GET /project/{id}/templates -> list_templates (read)
GET /project/{id}/repositories -> list_repositories (read)
...
POST /project/{id}/tasks -> run_task (write)
POST /project/{id}/templates -> create_template (write)
PUT /project/{id}/environment/{eid} -> update_environment (write — set vars)
POST /project/{id}/repositories -> create_repository (write — pin a branch)
...
DELETE /project/{id}/templates/{tid} -> delete_template (delete, guarded)
DELETE /project/{id}/tasks/{tid} -> delete_task (delete, guarded)Two safety properties worth calling out:
Deletes refuse on the first call. Every
delete_*returns a refusal payload unless invoked withconfirm=True, so a stray delete can never fire by accident.Updates never blank what you didn't touch.
update_*tools are read-modify-write: theyGETthe current object, overlay only the fields you pass, thenPUTthe merged result — so renaming a template can't silently wipe its arguments or survey vars. (Environment secrets are write-only in the API and are never echoed back; omitting them leaves stored secrets intact.)
Widen or narrow the surface by editing the ALLOWLIST in generate.py and regenerating.
Related MCP server: MCP SysOperator
Quick start (Docker)
Pull the pre-built image from GitHub Container Registry:
docker pull ghcr.io/gabrielbelli/semaphore-mcp:latestMint a scoped API token in Semaphore (User settings → API Tokens) on an RBAC user scoped to match the tier you intend to allow — the token is the last, hardest fence. Then register with Claude Code by adding this to ~/.claude/mcp.json:
{
"mcpServers": {
"semaphore": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "SEMAPHORE_URL=https://semaphore.example.com",
"-e", "SEMAPHORE_TOKEN=your-scoped-token",
"ghcr.io/gabrielbelli/semaphore-mcp:latest"
]
}
}
}-i (not -t) is required for stdio MCP transport. Restart Claude Code, then call list_projects() to verify.
First publish: GHCR images inherit the source repository's visibility only after the image is linked. The
org.opencontainers.image.sourcelabel is set automatically by the workflow; on first publish, visit Your profile → Packages → semaphore-mcp → Package settings and either link it to the repo or flip visibility to public.
Four gates against a destructive call
Layer | Enforced by | Real fence? |
| MCP client (advisory) | hint only |
| the server itself (in-process) | ✅ |
Claude Code | Claude Code permissions | ✅ |
Scoped Semaphore API token | Semaphore RBAC (returns | ✅✅ |
Belt-and-braces permission block for Claude Code settings.json — reads run silent, writes prompt, deletes are denied outright at the client (drop them into ask instead if you want to allow them):
{
"permissions": {
"allow": [
"mcp__semaphore__list_projects", "mcp__semaphore__get_project",
"mcp__semaphore__list_templates", "mcp__semaphore__get_template",
"mcp__semaphore__list_tasks", "mcp__semaphore__get_last_tasks",
"mcp__semaphore__get_task", "mcp__semaphore__get_task_output",
"mcp__semaphore__list_inventory", "mcp__semaphore__get_inventory",
"mcp__semaphore__list_environment", "mcp__semaphore__list_repositories"
],
"ask": [
"mcp__semaphore__run_task", "mcp__semaphore__stop_task",
"mcp__semaphore__create_template", "mcp__semaphore__update_template",
"mcp__semaphore__create_environment", "mcp__semaphore__update_environment",
"mcp__semaphore__create_inventory", "mcp__semaphore__update_inventory",
"mcp__semaphore__create_repository", "mcp__semaphore__update_repository"
],
"deny": [
"mcp__semaphore__delete_template", "mcp__semaphore__delete_environment",
"mcp__semaphore__delete_inventory", "mcp__semaphore__delete_repository",
"mcp__semaphore__delete_task"
]
}
}Local development
python3 -m venv .venv && ./.venv/bin/pip install -r requirements.txt
./.venv/bin/python generate.py # api-docs.yml -> server.py
./.venv/bin/python server.py --list # list tools + annotations (offline)
./.venv/bin/pytest -q # safety-surface tests (offline)Or via make: make list, make build, make test, make run.
Bumping the pinned spec on a Semaphore upgrade
curl -sL https://raw.githubusercontent.com/semaphoreui/semaphore/develop/api-docs.yml -o api-docs.yml
python3 generate.py && git diff --statLicence
BSD 2-Clause. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceA production-ready MCP server ecosystem providing Claude AI with 150+ specialized tools across enhanced memory, data analytics, security, design, and infrastructure domains with PostgreSQL, Redis, Qdrant, and Docker orchestration.Last updated
- AlicenseCquality-maintenanceAn MCP server for Infrastructure as Code that enables AI assistants to manage cloud resources through Ansible and Terraform operations. It supports executing playbooks, managing AWS services, and running Terraform commands with optional LocalStack integration.Last updated18
- AlicenseBqualityDmaintenanceAn MCP server that enables Claude to manage infrastructure across Kubernetes, Docker, Prometheus, and Terraform through natural language. It provides over 42 specialized tools with a safety-first design, including risk-based command classification and audit logging.Last updated43MIT
- Alicense-qualityDmaintenanceAn MCP server that exposes Terraform CLI operations as tools for Claude and other MCP-compatible AI assistants, enabling AI-driven infrastructure-as-code workflows including planning, applying, and validating Terraform configurations.Last updated19MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gabrielbelli/semaphore-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server