CDK API MCP Server

Provides an offline AWS CDK API reference.

CDK API MCP Server

PyPI - Version PyPI - Python Version

aws-cdk


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-cdk namespace
  • cdk-api-docs://constructs/aws-cdk-lib ... Stable modules in aws-cdk-lib package

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.

Related Servers