Skip to main content

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 with 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 and dataset export files (default: system temp directory)
  • STACKLET_MCP_ASSETDB_DATASOURCE_NAME: the name of the AssetDB data source in Redash, which the id is looked up from on first use (default: AssetDB)
  • STACKLET_MCP_ASSETDB_DATASOURCE: the datasource ID for AssetDB in Redash, for a deployment that needs to name one explicitly. Unset by default, meaning look it up by name — Redash assigns the id at creation, so it differs between deployments and cannot be assumed
  • 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)

Note: Setting PYTHONUTF8 to 1 can avoid encoding errors at startup on Windows machines. The stacklet-mcp agent-config generate command should define that environment variable only when run on Windows. Note that while this isn't necessary on Mac or Linux, it also won't do any harm.

Development

For development, a few setup steps are required:

  1. install required tools. The easiest way is through Mise:
mise install
  1. 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.

  1. Authenticate to the deployment as described above.

  2. 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

Metadata

Release files for stacklet-mcp 2026.10.23

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

Source distribution (sdist)

Source distribution for stacklet-mcp 2026.10.23
File Size Uploaded Provenance Actions
stacklet_mcp-2026.10.23.tar.gz 154.9 kB With provenance Details for stacklet_mcp-2026.10.23.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stacklet-mcp 2026.10.23
File Interpreter ABI Platform Actions
stacklet_mcp-2026.10.23-py3-none-any.whl Python 3 none any Details for stacklet_mcp-2026.10.23-py3-none-any.whl

Total release size: 206.6 kB

Release files / stacklet_mcp-2026.10.23.tar.gz

Download URL stacklet_mcp-2026.10.23.tar.gz
Size 154.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e0341ae2b065fe15edce3c9cf5a5cf616492a0a01559b87e9d2aa295682e15bc
BLAKE2b-256 checksum
How to use checksums
c1ebb34ee4b934b678deb0a20b493cf2e8db634dabf2873e4a0e303b3716e797
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / stacklet_mcp-2026.10.23-py3-none-any.whl

Download URL stacklet_mcp-2026.10.23-py3-none-any.whl
Size 51.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8542a7f324e0e4722bea578dc8a61d7d3da5adda71bbcb65ec73884177514d6e
BLAKE2b-256 checksum
How to use checksums
abb4f17548b6758fbc192e200cf7f04cd50ddc02d25813f98b697756a31ade70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for stacklet-mcp 2026.10.23

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for stacklet_mcp-2026.10.23.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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