Standalone, vendor-agnostic MCP server for Ansible tooling
Project description
ansible-mcp
Standalone MCP server for Ansible workflows with first-class support for modern MCP clients (GitHub Copilot, Claude Code, Cursor).
One-click setup
Install once:
uv tool install ansible-mcp
Then configure your client in one command:
GitHub Copilot in VS Code
ansible-mcp install --client copilot
Claude Code
ansible-mcp install --client claude
Cursor
ansible-mcp install --client cursor
For project-scoped setup (checked into your repo):
ansible-mcp install --client copilot --scope project --workspace-root .
ansible-mcp install --client cursor --scope project --workspace-root .
Why ansible-mcp serve --stdio keeps the terminal open
--stdio runs a long-lived MCP server process. It waits for JSON-RPC messages
from your MCP client.
- This is expected.
- Press
Ctrl+Cto stop it when running manually. - In real usage, the client launches and manages this process for you.
Tool coverage
Core Ansible operations
lintplaybook_syntax_checkplaybook_runinventory_parseinventory_graph
Upstream-compatible endpoints
list_available_toolszen_of_ansibleansible_content_best_practicesansible_lintade_environment_infoade_setup_environmentadt_check_envansible_create_playbookansible_create_collectiondefine_and_build_execution_envansible_navigator
Detailed parity notes: ansible://docs/upstream-parity
Upstream comparison
| Area | VS Code Ansible MCP (extension-coupled model) | ansible-mcp |
|---|---|---|
| Packaging | Coupled to extension/monorepo workflows | Standalone Python package (ansible-mcp) |
| Client scope | Primarily VS Code/Copilot flows | Any MCP-compatible client |
| Transport | Usually extension-managed STDIO | STDIO, Streamable HTTP, SSE |
| Tool architecture | Extension-shaped integration | Plugin router + entry-point extension model |
| Token behavior | Often more verbose metadata payloads | Compact tool descriptions and bounded responses |
| Docs access | Mostly extension context | MCP resources (ansible://docs/*) |
Marketplace compatibility
For Marketplace specifics and how to ship a VS Code wrapper extension around this server, see docs/MARKETPLACE_COMPATIBILITY.md.
Additional docs
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansible_mcp-1.0.1.tar.gz.
File metadata
- Download URL: ansible_mcp-1.0.1.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6e9a3943a2e35c323518d6e9d56154684f51b4484873f3ea95f2ec6f7376462
|
|
| MD5 |
68def247f1c87b9d8b531753b02b49c7
|
|
| BLAKE2b-256 |
fe705d90c4da3cd669a55b4ea295d70288e594d88f580bcda9807a47e45bbedc
|
Provenance
The following attestation bundles were made for ansible_mcp-1.0.1.tar.gz:
Publisher:
publish.yml on shreyanshjain7174/ansible-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansible_mcp-1.0.1.tar.gz -
Subject digest:
a6e9a3943a2e35c323518d6e9d56154684f51b4484873f3ea95f2ec6f7376462 - Sigstore transparency entry: 1101328760
- Sigstore integration time:
-
Permalink:
shreyanshjain7174/ansible-mcp@6ffdff257fa28b3bb4088a3f16449d305932109f -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/shreyanshjain7174
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6ffdff257fa28b3bb4088a3f16449d305932109f -
Trigger Event:
push
-
Statement type:
File details
Details for the file ansible_mcp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ansible_mcp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 34.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8906f752d49c3770aaed7a4aadb626a5dd6a66d06beaeeed6c9cbfcc83e0b266
|
|
| MD5 |
af379304a097c7d9662f963994e56974
|
|
| BLAKE2b-256 |
a77485fdc348543f271c30935b1a29e5d71e9375cdbfa3a385ac934c964ad011
|
Provenance
The following attestation bundles were made for ansible_mcp-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on shreyanshjain7174/ansible-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansible_mcp-1.0.1-py3-none-any.whl -
Subject digest:
8906f752d49c3770aaed7a4aadb626a5dd6a66d06beaeeed6c9cbfcc83e0b266 - Sigstore transparency entry: 1101328865
- Sigstore integration time:
-
Permalink:
shreyanshjain7174/ansible-mcp@6ffdff257fa28b3bb4088a3f16449d305932109f -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/shreyanshjain7174
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6ffdff257fa28b3bb4088a3f16449d305932109f -
Trigger Event:
push
-
Statement type: