MCP2Lambda MCP Server

This MCP server acts as a **bridge** between MCP clients and AWS Lambda functions, allowing generative AI models to access and run Lambda functions

Local serverstdioPython

What is the MCP2Lambda MCP server?

MCP2Lambda MCP server exists for a simple reason — assistants are far more useful when they can act on MCP2Lambda directly instead of describing what you should do. This MCP server acts as a bridge between MCP clients and AWS Lambda functions, allowing generative AI models to access and run Lambda functions as tools. This is useful, for example, to access private resources such as internal.

What you get

MCP2Lambda enables LLMs to interact with AWS Lambda functions as tools, extending their capabilities beyond text generation. This allows models to:

Setting it up

The server ships on npm as @smithery/cli, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What the assistant can call

Once MCP2Lambda is connected, these are the calls the assistant has available:

  • CustomerIdFromEmail — Retrieves a customer ID based on an email address. This function takes an email parameter and returns the associated customer ID, demonstrating how
  • CustomerInfoFromId — Retrieves detailed customer information based on a customer ID. This function returns customer details like name, email, and status, showing how
  • RunPythonCode — Executes arbitrary Python code within a Lambda sandbox environment. This powerful function allows Claude to write and run Python code to perform
  • Prerequisites — The Prerequisites tool exposed by this server
  • Configuration — The client is configured to use Anthropic's Claude 3.7 Sonnet by default, but you can modify the model_id in main.py to use other Bedrock models:
  • Usage — 1. Start the MCP2Lambda server in one terminal: cd mcp2lambda uv run main.py

Configuration and credentials

You will need one environment variable: PRE_DISCOVERY. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Python 3.12 or higher - AWS account with configured credentials - AWS Lambda functions (sample functions provided in the repo) - An application using Amazon Bedrock with the Converse API - An MCP-compatible client like Claude Desktop

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcp2lambda mcp server does with a few real requests.

Choosing this one

This sits in the team communication group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP2Lambda's toolset — CustomerIdFromEmail, CustomerInfoFromId, RunPythonCode and 3 more — is a fair guide to whether it matches your workflow. It is maintained by danilop; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MCP2Lambda's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
CustomerIdFromEmailRetrieves a customer ID based on an email address. This function takes an email parameter and returns the associated customer ID, demonstrating how to build simple lookup tools. The function is hard coded to reply to the
CustomerInfoFromIdRetrieves detailed customer information based on a customer ID. This function returns customer details like name, email, and status, showing how Lambda can provide context-specific data. The function is hard coded to rep
RunPythonCodeExecutes arbitrary Python code within a Lambda sandbox environment. This powerful function allows Claude to write and run Python code to perform calculations, data processing, or other operations not built into the model
PrerequisitesThe Prerequisites tool exposed by this server.
ConfigurationThe client is configured to use Anthropic's Claude 3.7 Sonnet by default, but you can modify the model_id in main.py to use other Bedrock models:
Usage1. Start the MCP2Lambda server in one terminal: cd mcp2lambda uv run main.py

How to install the MCP2Lambda MCP server

{
  "mcpServers": {
    "mcp2lambda": {
      "command": "npx",
      "args": ["-y", "@smithery/cli"],
      "env": {
        "PRE_DISCOVERY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.12 or higher - AWS account with configured credentials - AWS Lambda functions (sample functions provided in the repo) - An application using Amazon Bedrock with the Converse API - An MCP-compatible client like Claude Desktop
VariableDescriptionRequired
PRE_DISCOVERYConfiguration value read at startup.Optional

Example prompts to try

  • Use MCP2Lambda to CustomerIdFromEmail.
  • Use MCP2Lambda to CustomerInfoFromId.
  • Use MCP2Lambda to RunPythonCode.

Frequently asked questions

It connects MCP2Lambda to MCP-compatible AI assistants such as Claude and Cursor, exposing 6 tools (CustomerIdFromEmail, CustomerInfoFromId, RunPythonCode, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP2Lambda directly.