
danilop/mcp2lambda
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
danilop/mcp2lambda는 https://github.com/danilop/mcp2lambda.에서 가져온 MCP 서버 후보입니다.
개요
danilop/mcp2lambda는 https://github.com/danilop/mcp2lambda.에서 가져온 MCP 서버 후보입니다.
개요(AI 번역)
Anthropic의 Model Context Protocol(MCP)을 사용해 코드 변경 없이 AWS Lambda 함수를 대형 언어 모델(LLM) 도구로 실행할 수 있습니다.
이 MCP 서버는 MCP 클라이언트와 AWS 람다 함수 사이의 다리 역할을 하여, 생성형 AI 모델이 람다 함수를 도구로 접근하고 실행할 수 있게 합니다. 예를 들어, 내부 애플리케이션이나 데이터베이스와 같은 사설 자원에 공용 네트워크 접근을 제공하지 않고도 유용하게 활용됩니다. 이 접근법은 모델이 다른 AWS 서비스, 사설 네트워크, 공용 인터넷을 사용할 수 있게 합니다.
보안 관점에서 이 접근법은 모델이 람다 함수를 호출할 수 있도록 하여 업무 분리를 구현하지만, 다른 AWS 서비스에 직접 접근할 수는 없습니다. 클라이언트는 람다 함수를 호출하기 위해 AWS 자격 증명만 있으면 됩니다. 람다 함수들은 다른 AWS 서비스와 상호작용할 수 있으며(함수 역할을 사용), 공용 또는 사설 네트워크에 접근할 수 있습니다.
MCP 서버는 두 가지 도구에 접근할 수 있게 합니다:
-
첫 번째 도구는 계정 내 접두사나 허용된 이름 목록에 맞는 모든 람다 함수를 자동 발견할 수 있습니다. 이 도구는 함수 이름과 설명을 모델과 공유합니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MCP2Lambda
Run any AWS Lambda function as a Large Language Model (LLM) tool without code changes using Anthropic’s Model Context Protocol (MCP).
graph LR
A[Model] B[MCP Client]
B C["MCP2Lambda(MCP Server)"]
C D[Lambda Function]
D E[Other AWS Services]
D F[Internet]
D G[VPC]
style A fill:#f9f,stroke:#333,stroke-width:2px
style B fill:#bbf,stroke:#333,stroke-width:2px
style C fill:#bfb,stroke:#333,stroke-width:4px
style D fill:#fbb,stroke:#333,stroke-width:2px
style E fill:#fbf,stroke:#333,stroke-width:2px
style F fill:#dff,stroke:#333,stroke-width:2px
style G fill:#ffd,stroke:#333,stroke-width:2px
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 applications and databases without the need to provide public network access. This approach allows the model to use other AWS services, private networks, and the public internet.
From a security perspective, this approach implements segregation of duties by allowing the model to invoke the Lambda functions but not to access the other AWS services directly. The client only needs AWS credentials to invoke the Lambda functions. The Lambda functions can then interact with other AWS services (using the function role) and access public or private networks.
The MCP server gives access to two tools:
-
The first tool can autodiscover all Lambda functions in your account that match a prefix or an allowed list of names. This tool shares the names of the functions and their descriptions with the model.
-
The second tool allows to invoke those Lambda functions by name passing the required parameters.
No code changes are required. You should change these configurations to improve results:
Strategy Selection
The gateway supports two different strategies for handling Lambda functions:
-
Pre-Discovery Mode (default: enabled): Registers each Lambda function as an individual tool at startup. This provides a more intuitive interface where each function appears as its own named tool.
-
Generic Mode: Uses two generic tools (
list_lambda_functionsandinvoke_lambda_function) to interact with Lambda functions.
You can control this behavior through:
- Environment variable:
PRE_DISCOVERY=true|false - CLI flag:
--no-pre-discovery(disables pre-discovery mode)
Example:
# Disable pre-discovery mode
export PRE_DISCOVERY=false
python main.py
# Or using CLI flag to disable pre-discovery
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"mcp2lambda": {
"command": "uv",
"args": [
"--directory",
"<full path to the mcp2lambda directory>",
"run",
"main.py"
]
}
}
}