Serverless Inc. has unveiled Serverless MCP (Model Context Protocol), a groundbreaking tool that integrates AI-assisted debugging directly into your IDE. This innovation streamlines the process of diagnosing and resolving issues within AWS serverless environments, eliminating the need to navigate through multiple AWS dashboards.
What Is Serverless MCP?
Serverless MCP is a developer-centric protocol that bridges AI-powered IDEs like Cursor and Windsurf with AWS infrastructure. By intelligently analyzing your Infrastructure as Code (IaC) files, MCP identifies relevant AWS resources and retrieves pertinent data such as configurations, logs, and metrics. This information is then presented within your IDE, providing a cohesive and efficient debugging experience.
Key Features
- Comprehensive Service Summaries: Generate detailed overviews of your services, including configurations, deployment histories, invocation counts, and error reports.
- Intelligent Resource Discovery: Automatically identify and analyze AWS resources defined in your project files.
- Error Analysis and Grouping: Detect patterns in error logs to pinpoint recurring issues across your services.
- Up-to-Date Documentation Access: Query the latest documentation for Serverless Framework and Serverless Container Framework directly from your IDE.
Built-In Tools
Serverless MCP comes equipped with a suite of tools designed to enhance your development workflow:
list-projects
: Discover all serverless projects within your workspace.list-resources
: Identify all resources defined in your infrastructure configuration.service-summary
: Obtain a consolidated view of your entire service in a single call.deployment-history
: Retrieve chronological deployment events for your infrastructure.aws-lambda-info
: Diagnose performance issues and configurations of Lambda functions.aws-iam-info
: Access detailed information about IAM roles and policies.aws-errors-info
: Identify and group similar error patterns across your services. (️ Introducing the Serverless MCP 🛠️ Debug AWS … – LinkedIn)docs
: Access comprehensive, up-to-date documentation.
Getting Started
Serverless MCP is integrated into the Serverless Framework CLI, requiring version 4.13.0 or later. To install or update:
npm install -g serverless
IDE Integration
For Cursor:
- Navigate to
Settings > MCP
. - Add a new global MCP server with the following configuration:
{ "mcpServers": { "serverless": { "command": "serverless", "args": ["mcp"] } } }
For Windsurf:
- Go to
Settings > General > Cascade
. - Add a custom server using the same configuration as above.
Using SSE Transport:
Run the following command: (Serverless Framework – Best of JS)
serverless mcp --transport sse
Then, configure your IDE to point to the server URL.
Deploying a Minimal MCP Server on AWS Lambda
For those interested in deploying a minimal MCP server using AWS Lambda and the Serverless Framework, a detailed guide is available: (Deploy a minimal MCP Server on AWS Lambda with Serverless …)
This guide provides step-by-step instructions to set up a lightweight MCP server, enabling local development and testing.
Learn More
To explore the full capabilities of Serverless MCP and how it can enhance your development workflow, visit the official documentation:
Experience streamlined debugging and efficient development with Serverless MCP today.