localstack-mcp-server

v0.8.0
io.github.localstack/localstack-mcp-server Checked 1 hour ago Published 17 hours ago

A LocalStack MCP Server providing essential tools for local cloud development & testing

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

localstack-app-inspector LocalStack App Inspector

Query and manage App Inspector traces, spans, and events to review deployed LocalStack applications. Also the place for IAM: why a request was denied, which policies decided it, LocalStack's suggested fix, the least-privilege policies derived from a run, and the IAM enforcement mode.

ParameterTypeDescription
action *stringThe App Inspector action to perform. Debugging flow: get-status, set-status to enabled if needed, run the AWS workload, list-traces, list-spans for a trace, then list-events for a span. IAM flow (Acce…
account_idstringFilter traces or spans by LocalStack AWS account ID.
arnstringFilter traces or spans by resource ARN. For get-auto-derived-iam-policies, return the policy of exactly this ARN (as listed without arn). This value is not sent to analytics.
detailstringexplain-iam only. summary (default): the deciding policies and LocalStack's suggested statements verbatim. full: also the whole event payload as LocalStack sent it.
end_time_unix_nanointegerFilter traces or spans by end timestamp in Unix nanoseconds.
event_idstringEvent ID. Required for get-event and get-iam-policy. For explain-iam, the event_id of a row of list-iam-denials.
event_namestringFilter events by event name.
event_typestringFilter events by event type, e.g. iam.policy_evaluation.
limitintegerMaximum number of results to return (1-1000). list-iam-denials: default 20, max 100. explain-iam with span_id: default 10, max 50.
modestringIAM enforcement mode, required for set-iam-mode. ENFORCED: denied requests fail, as on AWS. SOFT_MODE: they are allowed and logged. ENGINE_ONLY: evaluated without rejecting or logging; App Inspector s…
newer_thanstringlist-iam-denials only: the newer_than token from a first page's footer; returns only denials recorded after that call. Not a time and not a pagination_token.
operation_namestringFilter by operation name (e.g., 'CreateBucket')
pagination_tokenstringPagination cursor from a previous response
parent_span_idstringFilter traces or spans by parent span ID.
policy_keystringKey of a policy in an IAM event's `policies` (e.g. p2), as explain-iam names it. Required for get-iam-policy.
regionstringFilter by AWS region (e.g., 'us-east-1')
resource_namestringFilter by resource name
service_namestringFilter traces or spans by AWS service name, e.g. lambda, s3, sqs.
span_idstringSpan ID. Required for get-span, list-events, get-event, and list-iam-events. For list-events/list-iam-events, use '*' to query across all spans. For explain-iam, instead of event_id: every IAM evaluat…
span_idsarraySpan IDs to delete for delete-spans. Omit to delete all spans in the trace scope.
start_time_unix_nanointegerFilter traces or spans by start timestamp in Unix nanoseconds.
statusstringStatus to set. Required for set-status. Use enabled before running a workload you want to inspect. Disabling App Inspector and enabling it again deletes the recorded traces and denials, unless LocalSt…
status_codeintegerFilter traces or spans by status code.
trace_idstringTrace ID. Required for get-trace, list-spans, get-span, delete-spans, list-events, get-event, and list-iam-events. For list-spans/list-events/list-iam-events, use '*' to query across all traces. Not u…
trace_idsarrayTrace IDs to delete for delete-traces. Omit to delete all traces.
versionintegerFilter traces or spans by App Inspector schema version.

localstack-aws-client LocalStack AWS Client

Executes an AWS CLI command against the running LocalStack for AWS emulator, through the official AWS CLI v2 and 'lstk aws', which set the endpoint, credentials and region. Requests only ever reach LocalStack. Local files (s3 cp, file://, --body, an outfile) must be relative paths or inside the tool's working directory.

ParameterTypeDescription
command *stringThe AWS CLI command to execute (e.g., 's3 ls', 'dynamodb list-tables'). Do not include 'lstk', 'aws' or 'awslocal'.

localstack-aws-replicator LocalStack AWS Replicator

Replicate external AWS resources into a running LocalStack instance using the AWS Replicator HTTP API.

ParameterTypeDescription
action *stringThe AWS Replicator action to perform: start a job, check job status, list jobs, or list supported resource types.
job_idstringReplication job id. Required for the status action.
replication_typestringReplication job type. Use SINGLE_RESOURCE for one resource, or BATCH for supported batch jobs such as SSM parameters under a path prefix.
resource_arnstringFull ARN of the resource to replicate. Only supported for SINGLE_RESOURCE jobs and mutually exclusive with resource_type/resource_identifier.
resource_identifierstringCloudControl identifier for the resource to replicate, such as a VPC ID (vpc-...), SSM parameter name, IAM role name, or ECR repository name. Required when using resource_type and mutually exclusive w…
resource_typestringCloudFormation resource type to replicate, e.g. AWS::EC2::VPC or AWS::SSM::Parameter. Use this with resource_identifier, or provide resource_arn instead.
target_account_idstringOptional LocalStack target AWS account id override. LocalStack defaults to account 000000000000, so this is only needed when replicating into a non-default account namespace.
target_region_namestringOptional LocalStack target AWS region override. Defaults to the source region.

localstack-azure-client LocalStack Azure Client

Run Azure CLI (`az`) commands against the LocalStack Azure emulator. The tool keeps its own Azure CLI profile, logged in to the emulator with a dummy account, so your own Azure login is never used or changed. Relative file paths resolve against the server's working directory (LOCALSTACK_AZ_WORKDIR), and a leading `~` in any argument is your home directory. For an operation without a command, use `rest` with a relative URL. `az` reaches only the emulator: an endpoint or URL anywhere else is refused. Start the emulator with `localstack-management` (service: azure).

ParameterTypeDescription
command *stringOne Azure CLI command, with or without the leading `az`, for example `group create --name demo --location westeurope`. No shell syntax: no pipes, `&&`, redirects or `$(...)`.

localstack-chaos-injector LocalStack Chaos Injector

Injects, manages, and clears chaos faults and network effects in LocalStack to test system resilience.

ParameterTypeDescription
action *stringThe specific chaos engineering action to perform.
latency_msintegerNetwork latency in milliseconds. Required for the 'inject-latency' action.
rulesarrayAn array of fault rules. Required for 'inject-faults', 'add-fault-rule', and 'remove-fault-rule' actions.

localstack-cloud-pods LocalStack Cloud Pods

Manages remote LocalStack Cloud Pods with following actions: save, load, delete

ParameterTypeDescription
action *stringThe Cloud Pods action to perform.
pod_namestringThe name of the Cloud Pod. This is required for 'save', 'load', and 'delete' actions.

localstack-deployer LocalStack Deployer

Deploys or destroys AWS infrastructure on LocalStack using CDK, Terraform, or SAM.

ParameterTypeDescription
action *stringThe action to perform: 'deploy'/'destroy' for CDK/Terraform, or 'create-stack'/'delete-stack' for CloudFormation.
directorystringThe required path to the project directory containing your infrastructure-as-code files.
projectTypestringThe type of project. 'auto' (default) infers from files. Specify 'cdk', 'terraform', 'cloudformation', or 'sam' to override.
resolveS3booleanFor SAM deployments, whether to use --resolve-s3 when no s3Bucket is provided.
s3BucketstringS3 bucket name used by SAM deployments. If omitted, SAM can use --resolve-s3.
saveParamsbooleanFor SAM deployments, whether to persist resolved parameters to samconfig.toml using --save-params.
stackNamestringThe stack name used by CloudFormation and SAM. Required for 'create-stack'/'delete-stack' actions, and optional for SAM deploy/destroy (defaults can be inferred).
templatePathstringThe local template file path used by CloudFormation and SAM. Required for 'create-stack' if not discoverable from 'directory', and optional for SAM as a template override.
variablesobjectKey-value pairs for parameterization. Used for Terraform variables (-var) or CDK context (-c).

localstack-docs LocalStack Docs Search

Search the LocalStack documentation to find guides, API references, and configuration details

ParameterTypeDescription
query *stringThe search query.
limitintegerMaximum number of results to return.

localstack-ephemeral-instances LocalStack Ephemeral Instances

Manage cloud-hosted LocalStack Ephemeral Instances: create, list, fetch logs, and delete.

ParameterTypeDescription
action *stringThe Ephemeral Instances action to perform.
cloudPodstringOptional Cloud Pod name to initialize state for create action. This is passed as CLOUD_POD_NAME.
envVarsobjectAdditional environment variables to pass to the ephemeral instance (create action only).
extensionstringOptional extension package to preload for create action. This is passed as EXTENSION_AUTO_INSTALL.
lifetimeintegerLifetime in minutes for create action. Defaults to the platform default when omitted.
namestringInstance name. Required for create, logs, and delete actions.

localstack-extensions LocalStack Extensions

Install, uninstall, list, and discover LocalStack Extensions from the marketplace

ParameterTypeDescription
action *stringlist = installed extensions; install = install an extension; uninstall = remove an extension; available = browse the marketplace/extensions library
namestringExtension package name (e.g. 'localstack-extension-typedb' or 'localstack-extension-typedb==1.0.0'). Required for install and uninstall actions.

localstack-iam-policy-analyzer LocalStack IAM Policy Analyzer

Configures LocalStack's IAM enforcement and analyzes logs to generate missing IAM policies. For IAM, localstack-app-inspector is recommended instead (list-iam-denials, explain-iam, get-auto-derived-iam-policies, get-iam-mode, set-iam-mode): it reads LocalStack's structured IAM data and shows the policies that decided a request, including another account's, and LocalStack's suggested fix.

ParameterTypeDescription
action *stringThe action to perform: 'set-mode' to configure enforcement, 'analyze-policies' to generate a policy from logs, or 'get-status' to check the current mode.
modestringThe enforcement mode to set. This is required only when the action is 'set-mode'.

localstack-logs-analysis LocalStack Logs Analysis

LocalStack log analyzer that helps developers quickly diagnose issues and understand their LocalStack interactions

ParameterTypeDescription
analysisTypestringThe analysis to perform: 'summary' (default), 'errors', 'requests', or 'logs' for raw output.
filterstringRaw keyword filter. Only used with 'logs' mode.
linesintegerNumber of recent log lines to fetch and analyze.
operationstringFilter by a specific API operation (e.g., 'CreateBucket'). Requires 'service'. Used with 'requests' mode.
servicestringFilter by AWS service (e.g., 's3', 'lambda'). Used with 'errors' and 'requests' modes.

localstack-management LocalStack Management

Manage LocalStack lifecycle: start, stop, restart, or check status

ParameterTypeDescription
action *stringThe LocalStack management action to perform
envVarsobjectAdditional environment variables as key-value pairs (only for start action)
servicestringThe LocalStack stack/service to manage. Use 'aws' for the default AWS emulator, 'snowflake' for the Snowflake emulator, or 'azure' for the Azure emulator.

localstack-snowflake-client LocalStack Snowflake Client

Execute SQL queries and commands against the LocalStack Snowflake emulator using the Snowflake CLI (snow). Use this to run SELECT queries, DDL (CREATE/DROP), DML (INSERT/UPDATE/DELETE), SHOW DATABASES/SCHEMAS/TABLES, DESCRIBE TABLE, and any other Snowflake SQL.

ParameterTypeDescription
action *stringAction to perform
databasestringSnowflake database context for this query.
file_pathstringAbsolute path to a .sql file to execute. Required when action is 'execute' and query is not provided.
querystringSQL query to execute (e.g. 'SELECT * FROM mytable', 'SHOW DATABASES', 'CREATE TABLE ...'). Required when action is 'execute' and file_path is not provided.
rolestringSnowflake role to use for this query.
schemastringSnowflake schema context for this query.
warehousestringSnowflake warehouse to use for this query.

localstack-state-management LocalStack State Management

Export, import, reset, and inspect LocalStack state using local file-based workflows on disk.

ParameterTypeDescription
action *stringThe local LocalStack state action to perform through the LocalStack State REST API. Use this tool for file-based state export/import workflows on disk. Use Cloud Pods instead when the user wants remot…
file_pathstringLocal file path for state export or import. Required for import. For export, defaults to ls-state-export in the MCP server working directory if omitted.
servicesOptional AWS service names for service-level granularity, such as ['s3', 'lambda'] or 's3,lambda'. Supported for export, reset, and inspect. Import restores the services contained in the state file.