MCP server for the Stacklet environment
Project description
Stacklet MCP Server
This is the MCP (Model Context Protocol) server for the Stacklet environment. It exposes toolsets for granting LLMs the powers of:
- AssetDB SQL queries (ad-hoc and saved)
- Platform GraphQL operations (and export of large datasets)
- Documentation access (in .md, for context)
Each of the toolsets has an "info" tool with useful context, available to any client which supports minimal MCP features. Asking your agent to tell you about a toolset is a fairly reliable way to get it to call the info tool and load up its context with relevant information.
WARNING: most Stacklet installations contain confidential data; this server largely exists to feed that data to your agent's LLM, which is generally running in a datacenter Somewhere. Be very confident in your understanding of all relevant data security policies before running this server.
FURTHER WARNING: when running with default settings, the worst an LLM can do with this server is make ill-advised queries, which is often regrettable but generally no worse than a well-intentioned human user might do.
By enabling the _ALLOW_ options documented below, you are granting an LLM free rein to do anything you could do with Stacklet; doing so naturally bears risks proportional to your own level of access. Strongly consider authenticating as a custom Stacklet user with permissions tightly scoped to your task as an additional safeguard.
Installation
The easiest way to get the stacklet-mcp binary is via pip or uv, with
pip install stacklet-mcp
or
uv tool install stacklet-mcp
Once installed, an agent configuration file (.mcp.json) can be generated with
stacklet-mcp agent-config generate $profile
where $profile can be either default (no edit allowed) or unrestricted (all edits allowed).
The configuration can be manually tweaked to just allow some edits.
Authentication
The MCP server needs to be authenticated wtih the Stacklet environment before use. The easiest way to authenticate to your Stacklet environment is to use the stacklet-admin command, which is most easily installed with:
uv tool install stacklet.client.platform
Once you've configured that, a
stacklet-admin login
will grant the MCP server access as the authenticated user for twelve hours. Leaving aside the default blocks on saving queries and mutating platform, the server will have the same powers and restrictions as that user.
Server configuration
The MCP server can be configured via environment variables.
When the MCP is run from an agent, those can be set in the "env" section of the .mcp.json file.
The following variables are available:
STACKLET_MCP_DOWNLOADS_PATH: directory for storing query result files (default: system temp directory)STACKLET_MCP_ASSETDB_DATASOURCE: the datasource ID for AssetDB in Redash (default:1)STACKLET_MCP_ASSETDB_ALLOW_SAVE: whether to enable write operations in AssetDB (default:false)STACKLET_MCP_ASSETDB_ALLOW_ARCHIVE: whether to enable query archiving functionality in AssetDB (default:false)STACKLET_MCP_PLATFORM_ALLOW_MUTATIONS: whether to enable executing mutations in Platform API (default:false)
Development
For development, a few setup steps are required:
- install required tools. The easiest way is through Mise:
mise install
- install dependencies via
just install
This will also create a default.mcp.json (so long as there's nothing there already) with default read-only settings, which enables convenient experimentation by running e.g. Claude Code) in the project root without risk of altering saved AssetDB queries or running Platform mutations.
For alternative integrations, the .mcp.json file should serve as a starting point, but the details may vary by context; the best documentation for the format itself seems to be here.
-
Authenticate to the deployment as described above.
-
Run the MCP server with
just run [options...]
Inspect MCP protocol
The MCP Protocol Inspector is invaluable for peeking at the details of the protocol in use. It can be run via
just inspect
Project details
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 stacklet_mcp-2026.4.0.tar.gz.
File metadata
- Download URL: stacklet_mcp-2026.4.0.tar.gz
- Upload date:
- Size: 131.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
771849a396b20dcf75c09e95868a7ed7df80509ec451b4f37c881bd4589fd89d
|
|
| MD5 |
63b12a5ffdab31e315952fed8a7986bf
|
|
| BLAKE2b-256 |
f419fbffa98b8f45cdf8a2754b3d8f752acc183928bbc54dfbc02d9b1a734166
|
Provenance
The following attestation bundles were made for stacklet_mcp-2026.4.0.tar.gz:
Publisher:
release.yml on stacklet/mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stacklet_mcp-2026.4.0.tar.gz -
Subject digest:
771849a396b20dcf75c09e95868a7ed7df80509ec451b4f37c881bd4589fd89d - Sigstore transparency entry: 1217197029
- Sigstore integration time:
-
Permalink:
stacklet/mcp-server@86fdfa88cba32a185cc74aa74a70b5d99467fd49 -
Branch / Tag:
refs/tags/v2026.04.0 - Owner: https://github.com/stacklet
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@86fdfa88cba32a185cc74aa74a70b5d99467fd49 -
Trigger Event:
push
-
Statement type:
File details
Details for the file stacklet_mcp-2026.4.0-py3-none-any.whl.
File metadata
- Download URL: stacklet_mcp-2026.4.0-py3-none-any.whl
- Upload date:
- Size: 43.2 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 |
98aee134fbccc8abd0928e04f87ad724f9ea3ef32736429c83763a355a863ee8
|
|
| MD5 |
877aafbdf250ee09a83aec5f57cf3b6a
|
|
| BLAKE2b-256 |
9f7a29021aa6b70eb6aff2b4707007e4509885279edf00bbb05b95c5f5c91fd8
|
Provenance
The following attestation bundles were made for stacklet_mcp-2026.4.0-py3-none-any.whl:
Publisher:
release.yml on stacklet/mcp-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stacklet_mcp-2026.4.0-py3-none-any.whl -
Subject digest:
98aee134fbccc8abd0928e04f87ad724f9ea3ef32736429c83763a355a863ee8 - Sigstore transparency entry: 1217197094
- Sigstore integration time:
-
Permalink:
stacklet/mcp-server@86fdfa88cba32a185cc74aa74a70b5d99467fd49 -
Branch / Tag:
refs/tags/v2026.04.0 - Owner: https://github.com/stacklet
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@86fdfa88cba32a185cc74aa74a70b5d99467fd49 -
Trigger Event:
push
-
Statement type: