Skip to content

Menu

AWS Lambda MCP Server logo

AWS Lambda MCP Server

Published · Updated

At a glance

Watch out for
It does not deploy or manage Lambda functions; use the Serverless server for that.

The AWS Lambda Tool MCP Server, awslabs.lambda-tool-mcp-server, does something different from what an earlier version of this page described. It is not for deploying or managing Lambda functions. Instead, it turns selected existing Lambda functions into MCP tools, so a model can call them without any code changes to the functions.

That is a clever way to give an agent controlled access to private systems. A Lambda function can sit inside your VPC and talk to an internal database or application; the agent only gets to invoke the function, with whatever inputs it defines, and never gets direct access to the network or other AWS services. AWS describes this as segregation of duties: the model can call the function, and the function's own IAM role decides what it can reach.

You choose which functions become tools by name prefix, by an explicit list, or by a tag key and value. The function name becomes the tool name. Function descriptions become the tool descriptions the model reads, so writing clear descriptions matters. If you attach an input schema, referenced through a tag, the model also gets proper parameter definitions rather than guessing at the payload.

How it connects

Your AI app

An assistant or agent that supports MCP

AWS Lambda MCP Server

Runs as

  • Python (uv / pip)
  • Docker

Gives the agent

  • Functions as tools
  • Selection by prefix or list
  • Selection by tag
  • Input schemas
  • Private resource access

AWS Lambda

The data or system the tools act on

Your AI app talks to AWS Lambda MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Functions as tools
Each selected Lambda function appears as an MCP tool the model can invoke.
Selection by prefix or list
FUNCTION_PREFIX and FUNCTION_LIST choose which functions are exposed.
Selection by tag
FUNCTION_TAG_KEY and FUNCTION_TAG_VALUE expose only tagged functions; set both or none are selected.
Input schemas
FUNCTION_INPUT_SCHEMA_ARN_TAG_KEY points to a schema for each function so the model gets typed parameters.
Private resource access
Functions can reach VPC resources and other AWS services while the model only sees the tool.

Setting it up

Add a server that runs uvx awslabs.lambda-tool-mcp-server@latest, or a Docker image you build yourself from the repository (the README tags it awslabs/lambda-tool-mcp-server), with AWS_PROFILE and AWS_REGION in its environment. Set FUNCTION_PREFIX or FUNCTION_LIST (or the tag variables) to choose functions, and give each function a clear description. The credentials the server uses only need permission to invoke those functions. Keep each function's own IAM role as narrow as possible, since that is what really determines what the agent can affect.

Run in a terminal
claude mcp add aws-lambda -- uvx awslabs.lambda-tool-mcp-server@latest

Runs the awslabs.lambda-tool-mcp-server package from PyPI. Add any API keys, environment variables or extra arguments the setup notes above list. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Letting an agent query an internal database through a purpose-built Lambda
  • Exposing a few safe operational actions, such as clearing a cache, as tools
  • Giving agents access to private APIs without opening network access
  • Wrapping existing serverless functions for AI use without rewriting them

Limitations and things to watch

  • It does not deploy or manage Lambda functions; use the Serverless server for that.
  • Tool quality depends on function descriptions and schemas you write.
  • Each function's IAM role is the real security boundary.
  • Invocations cost money and run with real side effects.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…