• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Serverless Framework Logo

Serverless Framework

Intro
SetupUpgrading To V4ConceptsTutorialAWS CredentialsLicense Keys
DeployingPackagingBuildingTestingServicesFunctions
OverviewHTTP (API Gateway v2)REST (API Gateway v1)ActiveMQApplication Load BalancerAlexa SkillAlexa Smart HomeCloudWatch EventCloudWatch LogCloudFrontCognito User PoolEventBridge EventIoTIoT Fleet ProvisioningKafkaKinesis & DynamoDBMSKRabbitMQS3ScheduleSNSSQSWebsocket
LayersManaged InstancesAlertsVersion PruningDomainsIAM Function PermissionsParameters
OverviewSelf-reference serverless.ymlServerless CoreEnvironment VariablesCLI OptionsExternal YAML/JSON FilesJavascript propertiesGitDoppler
OverviewS3 ObjectsSSM Parameter Store & Secrets ManagerCloudFormation Stack Outputs
OverviewVaultTerraform State Output
ResourcesComposing ServicesDeployment BucketStatePython support
OverviewRuntimeGatewayMemoryBrowserCode InterpreterDev Mode
API Gateway Proxy
OverviewGeneral ConfigurationAuthenticationAPI KeysData SourcesResolversPipeline FunctionsCachingDelta SyncCustom DomainWAFCLI Commands
Deploying SAM/CFN TemplatesWorkflow Tips
OverviewCreating PluginsCLI OutputCustom CommandsCustom VariablesExtending the Configuration schemaExtending and overriding configuration
OverviewDashboardAxiom
Overviewdeploydeploy functiondeploy listdevdiffinfoinvokeinvoke localloginlogin awslogin aws ssologsmetricspackageplugin installplugin uninstallprintprunereconcileremoverollbackrollback functionsupportusage
Overview
OverviewMetricsTracesTroubleshoot
OverviewNode.jsPython
OutputsProviders
OverviewBranch DeploymentsPreview DeploymentsCustom ScriptsTestingPrivate PackagesNotificationsMono ReposDeploy in your own CI/CDBest PracticesTroubleshootingFAQ
OverviewSetupToolsAWS Integration
Serverless.yml Reference
Examples and TutorialsConfiguration Validation
  1. MCP Server
  2. Overview

Serverless MCP

Serverless MCP Server

The Serverless MCP Server is an implementation of the Model Context Protocol (MCP) that provides a set of tools for working with cloud resources and services across multiple Infrastructure as Code (IaC) solutions. It enables AI assistants to interact with your cloud infrastructure, helping you diagnose issues, retrieve information, and understand your serverless applications.

Features

  • Multiple Transport Options: Run the server using HTTP/SSE or stdio transport
  • Comprehensive Cloud Resource Information: Detailed metrics, configurations, and logs for serverless functions, roles, queues, storage, and API resources
  • Infrastructure as Code Integration: List and analyze resources defined in multiple IaC solutions including Serverless Framework, AWS CloudFormation, and SAM templates
  • Parallel Data Fetching: Efficient retrieval of metrics and logs across multiple resources
  • Error Grouping and Analysis: Intelligent aggregation of error logs for easier troubleshooting
  • Flexible Time Range Support: Customizable time periods for metrics and logs analysis
  • Service Summary Tool: Consolidated view of multiple resource types in a single request

Getting Started

Install the Serverless Framework if you haven't already:

npm install -g serverless

Then, you configure the MCP Server in your host application:

{
  "mcpServers": {
    "serverless": {
      "command": "serverless",
      "args": ["mcp"]
    }
  }
}

For detailed setup instructions, see the Setup Guide.

Example Prompts

  1. Provide a complete overview of my serverless application's resource relationships and data flows based on cloud data
  2. Display the deployment history of my serverless application for the past 7 days
  3. Identify which functions of my application have experienced the most errors
  4. Analyze my CloudWatch Alarms history and highlight recurring issues
  5. Detect unusual traffic patterns in my API Gateway during the past month
  6. Examine my SQS queues and determine if any messages are stuck

Best Practices

  • Always specify the profile explicitly when using MCP tools, especially in environments with multiple AWS accounts or roles
  • If the region is not specified in your service configuration, always provide the region parameter
  • For Serverless Framework projects, check the provider.region setting in your infrastructure configuration file
  • Use AWS SSO for enhanced security in enterprise environments
  • Regularly rotate your access keys if using long-term credentials

Next Steps

  • Available Tools: Explore the tools provided by the MCP Server
  • AWS Integration: Learn how to configure AWS credentials
  • Setup: Learn how to set up the MCP Server in your AI assistant
Edit this page
Prev FAQNextSetup

Contents

  • Serverless MCP Server
  • Features
  • Getting Started
  • Example Prompts
  • Best Practices
  • Next Steps

Related

GuidesPluginsExamplesSlack CommunitySupport