Lambda MCP Server

by bx9900

253 downloads
Not rated
GitHub

Description

# Lambda MCP Server A Model Context Protocol server for deploying and managing AWS Lambda functions. ## Features - Deploy Lambda functions through MCP interface - List existing Lambda functions - Guided deployment prompts - Type-safe configuration validation - AWS Lambda…

About

# Lambda MCP Server A Model Context Protocol server for deploying and managing AWS Lambda functions. ## Features - Deploy Lambda functions through MCP interface - List existing Lambda functions - Guided deployment prompts - Type-safe configuration validation - AWS Lambda integration ## Prerequisites - Node.js (v16 or…

Details

Author
bx9900
Downloads
253
Categories
Cloud Service

- Deploy Lambda functions through MCP interface
- List existing Lambda functions
- Guided deployment prompts
- Type-safe configuration validation
- AWS Lambda integration

Install the server with npm install, then create a .env file with AWS_REGION set to your desired region. Run npm run dev for development or npm run build followed by npm start for production. Use MCP tools like deploy, listFunctions, and guidedDeploy to manage your Lambda functions.

Lambda MCP Server

A Model Context Protocol server for deploying and managing AWS Lambda functions.

Features

- Deploy Lambda functions through MCP interface
- List existing Lambda functions
- Guided deployment prompts
- Type-safe configuration validation
- AWS Lambda integration

Prerequisites

- Node.js (v16 or higher)
- AWS Account with appropriate permissions
- AWS CLI configured with credentials

Installation

npm install

Configuration

Create a .env file in the root directory:

AWS_REGION=us-east-1

Usage

Development Mode

npm run dev

Production Mode

npm run build
npm start

MCP Tools

Deploy Lambda Function

// Example deployment configuration
const config = {
  functionName: "my-function",
  runtime: "nodejs18.x",
  handler: "index.handler",
  memorySize: 128,
  timeout: 30,
  roleArn: "arn:aws:iam::123456789012:role/lambda-role",
  environment: {
    NODE_ENV: "production"
  }
};

// Base64 encoded zip file containing the function code
const code = "base64-encoded-zip-file";

// Deploy using the MCP tool
const result = await client.callTool("deploy", { config, code });

List Functions

// List all Lambda functions
const result = await client.callTool("listFunctions", {});

Guided Deployment

// Start a guided deployment process
const prompt = await client.getPrompt("guidedDeploy", {
  functionName: "my-function",
  runtime: "nodejs18.x"
});

Protocol Interface

The server implements the following MCP tools:

- deploy: Deploy a new Lambda function
- listFunctions: List all Lambda functions
- guidedDeploy: Interactive deployment guidance

Security Considerations

- Always use HTTPS in production
- Implement proper authentication and authorization
- Rotate AWS credentials regularly
- Use environment variables for sensitive information
- Implement proper error handling and logging

License

MIT

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.