other
AWS MCP Integration for Vercel AI SDK
Connect AWS to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect AWS to Vercel AI SDK
Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.
Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with
--write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.
AWS MCP Config for Vercel AI SDK
Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.
{
"mcpServers": {
"kosmokrator-aws": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=aws",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=aws --write=deny Why Use KosmoKrator Here
Expose only AWS instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
AWS Tools Visible to Vercel AI SDK
Vercel AI SDK sees stable MCP tool names generated from the AWS integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__aws__aws_list_s3_buckets | aws.aws_list_s3_buckets | Read | List all S3 buckets in the AWS account. Returns bucket names, creation dates, and regions. |
integration__aws__aws_list_ec2_instances | aws.aws_list_ec2_instances | Read | Describe EC2 instances in the AWS account. Returns instance IDs, types, states, and metadata. Supports filtering by instance IDs, states, or tags. |
integration__aws__aws_list_lambda_functions | aws.aws_list_lambda_functions | Read | List all Lambda functions in the AWS account. Returns function names, runtimes, descriptions, and configuration. |
integration__aws__aws_invoke_lambda | aws.aws_invoke_lambda | Write | Invoke an AWS Lambda function with an optional payload. Supports synchronous (RequestResponse) and asynchronous (Event) invocation modes. |
integration__aws__aws_list_dynamodb_tables | aws.aws_list_dynamodb_tables | Read | List all DynamoDB tables in the AWS account. Returns table names and can be used with pagination to enumerate all tables. |
integration__aws__aws_get_cloudwatch_metrics | aws.aws_get_cloudwatch_metrics | Read | Get CloudWatch metric data for AWS resources. Supports querying metrics by namespace, metric name, dimensions, and time range with configurable statistics and periods. |
integration__aws__aws_list_sns_topics | aws.aws_list_sns_topics | Read | List all SNS notification topics in the AWS account. Returns topic ARNs and names. |
integration__aws__aws_get_current_user | aws.aws_get_current_user | Read | Get the current IAM user identity. Returns user ARN, account ID, and user ID. Useful for verifying credentials and understanding which AWS account is being accessed. |