About CDK API MCP Server
CDK API MCP Server provides AWS CDK API references and integration-test code examples for developers consulting CDK documentation. Its documents are bundled in the Python artifact, allowing offline use.
Key features
- 01Browse CDK API documentation resources
- 02Find documentation by package and module
- 03Read documentation file contents
- 04Access bundled documents offline
Use cases
- 01Look up AWS CDK module APIs
- 02Read construct reference documentation
- 03Consult integration-test code samples
MCP support
The MCP server exposes CDK API documentation as resources. Clients can list resources and read module or file contents.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMECDK API MCP Server
Provide AWS CDK API references and integration test code for sample. Can be used in offline because all documents are included in the released python artifact.
Usage
Add to your mcp.json:
{
"mcpServers": {
"konokenj.cdk-api-mcp-server": {
"command": "uvx",
"args": ["konokenj.cdk-api-mcp-server@latest"]
}
}
}
MCP Server Capabilities
Resource: CDK API packages
Registered as static resources. To get available modules under the package, call list_resources() as MCP client.
cdk-api-docs://constructs/@aws-cdk... Alpha modules published in@aws-cdknamespacecdk-api-docs://constructs/aws-cdk-lib... Stable modules inaws-cdk-libpackage
Resource Template: List modules in package
To get available documents under the module, call read_resource(uri) as MCP client.
cdk-api-docs://constructs/@aws-cdk/{module}cdk-api-docs://constructs/aws-cdk-lib/{module}
Resource Template: Read file contents
To read a document, call read_resource(uri) as MCP client.
cdk-api-docs://constructs/@aws-cdk/{module}/{file}cdk-api-docs://constructs/aws-cdk-lib/{module}/{file}
License
Distributed under the terms of the MIT license.
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.