About stackconstruct
stackconstruct provides AWS CDK guidance, documentation search, construct lookup, and stack checks for AWS CDK developers. Guidance and some checks run locally; documentation and construct lookups use public sources.
Key features
- 01Look up CDK practices and concepts
- 02Search AWS CDK documentation
- 03Find constructs and their details
- 04Check stacks for common risks
- 05Get migration guides and error explanations
- 06View example patterns
Use cases
- 01Find CDK security practices
- 02Look up AWS CDK docs or constructs
- 03Check templates for common security issues
- 04Understand migration steps or CDK errors
MCP support
It provides a stdio MCP server with tools for AWS CDK guidance, documentation and construct lookups, and stack checks.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @reneturcios/stackconstructLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
10Saved tool list · updated 1w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| topic | string | No | Optional best-practices topic to retrieve, one of general, security, testing, deployment, or cost (matched case-insensitively); defaults to general. |
Details
From the project READMEstackconstruct
AWS CDK guidance as MCP tools. stackconstruct is a clean-room rebuild of the core surface of the AWS CDK MCP server, under a new name: fresh curated guidance content and fresh code, no copied branding and no copied documentation text.
Tools (core subset, 10)
get_cdk_best_practices, search_cdk_docs, get_cdk_concept,
list_cdk_patterns, search_constructs, get_construct_details,
validate_stack_nag, get_migration_guide, explain_error,
get_example_pattern.
Keyless-first: the guidance tools (best practices, concepts,
patterns, migration guides, error explanations) are local
deterministic content written for this rebuild, and
validate_stack_nag runs local checks over a stack-template JSON you
supply — wildcard IAM actions/resources, unencrypted S3 buckets and
EBS volumes, buckets without a full public-access block, and security
groups open to the world. Only search_cdk_docs, search_constructs
and get_construct_details fetch, from the public AWS documentation
site and the constructs.dev public API.
Not in this subset: project bootstrap and initialisation, stack deployment or synthesis execution, CDK Pipelines management, context and feature-flag administration, construct code generation, and anything that mutates an AWS account or a local project.
Setup
No credentials are required. Optionally override the lookup bases:
export CDK_DOCS_URL=https://docs.aws.amazon.com # default
export CONSTRUCTS_API_URL=https://constructs.dev # default
CLI
npx @reneturcios/stackconstruct get_cdk_best_practices '{"topic":"security"}'
npx @reneturcios/stackconstruct validate_stack_nag '{"template":{"Resources":{}}}'
npx @reneturcios/stackconstruct mcp # stdio MCP server
Each tool name is a subcommand taking one JSON object argument.
MCP client config
{
"mcpServers": {
"stackconstruct": {
"command": "npx",
"args": ["-y", "@reneturcios/stackconstruct", "mcp"]
}
}
}
Docker
docker run -i ghcr.io/cloudcorprecords/stackconstruct
Development
npm install
npm run build
npm test
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.