lattice-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LATTICE_API_URL | Yes | Lattice API base URL | |
| LATTICE_API_TOKEN | Yes | API token for authentication |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| lattice_overviewA | Get fleet overview: worker counts, stack counts, container counts, failed stacks, recent deployments, fleet CPU/memory averages |
| lattice_healthA | Check API health and database connectivity |
| lattice_get_versionA | Get the deployed lattice-api version string. Use to check deploy drift against GitHub tags/commits (e.g. for /howfarbehind). |
| lattice_list_workersA | List all workers with status, IP, Docker version, runner version, last heartbeat |
| lattice_get_workerB | Get detailed worker info including metrics |
| lattice_get_worker_metricsB | Get recent worker metrics (CPU, memory, disk, network) |
| lattice_list_stacksB | List all stacks with status, worker assignment, and deployment strategy |
| lattice_get_stackA | Get full stack details including compose YAML and env vars |
| lattice_list_containersA | List containers with status, image, ports, health. Filter by stack or status |
| lattice_get_containerA | Get full container details including config, health, env vars, ports |
| lattice_get_container_logsC | Get recent container logs (stdout/stderr) |
| lattice_get_container_lifecycleA | Get container lifecycle events (start, stop, restart, health changes) |
| lattice_list_deploymentsB | List deployments with status, strategy, timing. Filter by stack or status |
| lattice_get_deploymentB | Get deployment details including container-level status |
| lattice_get_deployment_logsA | Get deployment logs: pull, create, start, swap, rollback events with timing |
| lattice_get_audit_logA | Get recent audit log entries (who did what, when). Filter by user, action, or resource type to answer 'who deleted X' without scanning. |
| lattice_deploy_stackB | Deploy a stack (all containers or specific ones) |
| lattice_restart_stackC | Restart all containers in a stack |
| lattice_stop_stackA | Stop all containers in a stack |
| lattice_start_stackB | Start all containers in a stack |
| lattice_update_stackC | Update stack configuration (name, description, strategy, worker, etc.) |
| lattice_start_containerB | Start a stopped container |
| lattice_stop_containerC | Stop a running container |
| lattice_restart_containerC | Restart a container |
| lattice_kill_containerC | Force kill a container |
| lattice_pause_containerC | Pause a running container |
| lattice_unpause_containerC | Unpause a paused container |
| lattice_remove_containerC | Remove a container entirely |
| lattice_recreate_containerB | Recreate a container (remove and create fresh) |
| lattice_reboot_workerC | Reboot a worker machine |
| lattice_upgrade_workerB | Upgrade worker runner to latest version |
| lattice_stop_all_workerB | Stop all containers on a worker |
| lattice_start_all_workerC | Start all containers on a worker |
| lattice_update_apiA | Update the Lattice API container. Pass |
| lattice_update_webA | Update the Lattice web container. Pass |
| lattice_rollback_deploymentC | Rollback a deployment to its previous state |
| lattice_list_api_tokensA | List all API tokens |
| lattice_create_api_tokenB | Create a new API token for AI tools or automation |
| lattice_delete_api_tokenB | Delete an API token |
| lattice_list_database_instancesA | List managed database instances with engine, version, status, worker and health. Filter by worker, engine or status |
| lattice_get_database_instanceA | Get one database instance: engine, port, limits, snapshot schedule, retention and backup destination |
| lattice_create_database_instanceB | Provision a database instance on a worker. Creates a real container. Omit |
| lattice_update_database_instanceA | Update a database instance's configuration. Only the fields you pass are changed |
| lattice_delete_database_instanceA | Delete a database instance record. Destructive — data is lost unless a snapshot exists. Check lattice_list_database_snapshots first |
| lattice_database_actionA | Start, stop, restart or remove a database instance's container. 'remove' destroys the container — data survives only if the volume or a snapshot does |
| lattice_get_database_connectionA | Get a database instance's host, port, database and username. Contains no secrets — prefer this over the credential tools when you only need to know where a database lives |
| lattice_reveal_database_credentialsA | Reveal a database instance's live credentials. Every call is audited and recorded against the instance. Returns the application user by default; set include_root only when root access is genuinely required. Passwords come back masked to their first two characters — enough to confirm which credential is deployed, not enough to use. Set LATTICE_ALLOW_SECRET_VALUES=1 in the MCP server env to get the real values, or read them from the Lattice UI |
| lattice_get_database_credentialsA | DEPRECATED — returns root credentials from a plain GET. Use lattice_reveal_database_credentials instead, which is audited and scoped |
| lattice_get_database_eventsA | Get a database instance's lifecycle history — every status transition, failure, reconciliation, console open and credential reveal. START HERE when a database is in an unexpected state: this is what explains how it got there |
| lattice_get_database_logsA | Get a database container's stdout/stderr. Use together with lattice_get_database_events when diagnosing a failed or degraded instance — the events say what happened, the logs say why |
| lattice_get_database_lifecycle_logsB | Get worker-emitted lifecycle messages for a database container, including provisioning progress and the reason a create failed |
| lattice_open_database_consoleA | Authorise an interactive console session against a running database and return the worker, container and SQL client command to run. The session itself runs over the admin WebSocket, so this returns the authorisation, not a live shell |
| lattice_get_worker_port_availabilityA | List host ports already claimed on a worker (by databases and by stack containers) and get a free suggestion. Check this before pinning a database to a specific port |
| lattice_list_database_snapshotsA | List snapshots for a database instance, with size and creation time. Check this before deleting or restoring an instance |
| lattice_create_database_snapshotA | Take a snapshot of a database instance now, outside its schedule |
| lattice_restore_database_snapshotA | Restore a database instance from one of its snapshots. Overwrites current data irreversibly — take a fresh snapshot first if the present state matters |
| lattice_delete_database_snapshotA | Delete a database snapshot. Destructive — that restore point is gone |
| lattice_list_backup_destinationsA | List configured backup destinations that database snapshots can be shipped to |
| lattice_get_backup_destinationB | Get one backup destination's configuration |
| lattice_create_backup_destinationA | Create a backup destination. config is a free-form object whose shape depends on type (e.g. an S3 destination takes bucket, region, endpoint and credentials) |
| lattice_update_backup_destinationB | Update a backup destination. Passing config replaces the whole object, it does not merge |
| lattice_delete_backup_destinationB | Delete a backup destination. Instances pointing at it lose their backup target. Destructive |
| lattice_test_backup_destinationA | Test connectivity and credentials for a backup destination without writing a real backup. The test is dispatched over the worker's WebSocket, so worker_id is required and that worker must be connected |
| lattice_list_registriesA | List configured container registries |
| lattice_create_registryB | Add a container registry |
| lattice_update_registryB | Update a registry's URL, type, credentials or active flag |
| lattice_delete_registryA | Delete a registry. Containers pulling from it fail on their next deploy. Destructive |
| lattice_test_registryB | Test a saved registry's stored credentials |
| lattice_test_registry_inlineB | Test registry credentials before saving them |
| lattice_list_registry_repositoriesA | List repositories available in a registry — what images exist to deploy |
| lattice_list_registry_tagsA | List the tags published for one repository. Use this to answer 'what version can I deploy' or 'is the image my CI just built actually in the registry' |
| lattice_searchA | Search across workers, stacks and containers by name in one call. Faster than listing each type and filtering when you only have a partial name |
| lattice_get_anomaliesA | Get detected fleet anomalies — restart loops, unhealthy containers, resource spikes, offline workers. The best first call when asked whether anything is wrong |
| lattice_get_fleet_metricsA | Get aggregated fleet-wide CPU, memory, disk and network metrics over a time range |
| lattice_get_versionsA | Get runner versions across workers and which are outdated. Use before lattice_upgrade_worker to see what actually needs upgrading |
| lattice_refresh_versionsA | Re-poll every worker for its current runner version, refreshing what lattice_get_versions reports |
| lattice_get_container_metricsB | Get a single container's CPU, memory and network metrics over time |
| lattice_get_selfA | Get the user this API token authenticates as, including role |
| lattice_create_stackA | Create an empty stack. Add containers with lattice_create_container, or use lattice_import_compose to create one from compose YAML |
| lattice_delete_stackA | Delete a stack and every container in it. Destructive and not recoverable — export it first with lattice_export_stack if you might want it back |
| lattice_get_stack_containersA | List the containers belonging to one stack |
| lattice_update_stack_composeA | Replace a stack's compose YAML. This rewrites the stored definition but does not deploy — call lattice_deploy_stack afterwards |
| lattice_sync_stack_composeB | Reconcile a stack's container records against its stored compose YAML, reporting which containers changed and why |
| lattice_import_composeB | Create a new stack from a docker-compose YAML document |
| lattice_export_stackA | Export a stack's full definition — stack settings plus every container config — as a portable JSON document. Take one before any destructive stack change |
| lattice_import_stack_exportA | Recreate a stack from a document produced by lattice_export_stack |
| lattice_save_stack_as_templateB | Save an existing stack's configuration as a reusable template |
| lattice_list_deploy_tokensA | List a stack's deploy tokens — the credentials CI uses to trigger deployments. Token values are never returned; last_used_at reveals whether CI is actually reaching Lattice |
| lattice_create_deploy_tokenA | Create a deploy token for a stack. The plaintext is returned once and this server masks it to its first two characters, so the usable value never enters a transcript — read it from the Lattice UI, or set LATTICE_ALLOW_SECRET_VALUES=1. Used as https:///api/deploy/?container= |
| lattice_delete_deploy_tokenA | Delete a deploy token. Any CI pipeline using it stops being able to deploy. Destructive |
| lattice_approve_deploymentA | Approve a deployment that is waiting on manual approval |
| lattice_create_containerA | Add a container definition to a stack. Creates the record only — deploy the stack to actually start it. JSON-shaped fields are passed as strings, matching the API |
| lattice_update_containerA | Update a container definition. Changes the stored record — redeploy or recreate the container for them to take effect |
| lattice_delete_containerA | Delete a container definition and its running container. Destructive — lattice_stop_container only stops it |
| lattice_create_workerA | Register a worker. The machine still needs the runner installed and a worker token before it connects |
| lattice_update_workerC | Update a worker's name, hostname, IP, status, labels or active flag |
| lattice_delete_workerA | Delete a worker. Every stack pinned to it becomes undeployable. Destructive |
| lattice_get_worker_container_statsB | Get live per-container resource stats from one worker |
| lattice_list_worker_tokensA | List a worker's registration tokens. Values are never returned |
| lattice_create_worker_tokenA | Create a registration token for a worker, used by the runner to connect. Plaintext is returned once and this server masks it to its first two characters — read the usable value from the Lattice UI, or set LATTICE_ALLOW_SECRET_VALUES=1 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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/aidenappl/lattice-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server