Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

serverless-mcp

Skill by serverless

Hosts Model Context Protocol (MCP) servers on AWS Lambda using the Serverless Framework's built-in MCP support. It is for developers who want to deploy, secure or debug an MCP server, or expose their own tools to an AI client over HTTPS.

  • Score 88
  • 47k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install serverless-mcp

Built from the published package, never by AI.

git clone --depth 1 https://github.com/serverless/serverless /tmp/serverless && mkdir -p ~/.claude/skills && cp -r /tmp/serverless/skills/serverless-mcp ~/.claude/skills/serverless-mcp

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install serverless-mcp in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

serverless-mcp is an agent skill for the Serverless Framework's built-in MCP support. You write a standard server module with the official MCP TypeScript SDK, whose default export comes from createMcpHandler(). The Framework then handles the rest from a short mcp block in serverless.yml: the HTTPS route on API Gateway, response streaming, access control through an authorizer, OAuth discovery metadata, and packaging for AWS Lambda.

The skill guides an assistant through the deploy and verify loop. It covers the mcp configuration, server code, troubleshooting for MCP_* errors, testing with curl, and Dev Mode. It is aimed at developers who want to host their own tools for Claude or another AI client over an HTTPS endpoint. Deployable examples are linked from the Serverless examples repository.

Written from the project's SKILL.md and checked against it.

What it can do

  • Deploy MCP serversHosts an MCP server module on AWS Lambda behind an HTTPS route on API Gateway.
  • Configure the mcp blockWrites or edits the mcp block in serverless.yml with a few lines of YAML.
  • Control accessWires a Lambda authorizer, Cognito user pool or IAM to the MCP route.
  • Advertise OAuth discoveryServes RFC 9728 protected-resource metadata through API Gateway without a Lambda.
  • Write server codeGuides the server module built with the official MCP TypeScript SDK and its tools, resources and prompts.
  • Debug MCP_* errorsExplains configuration errors such as MCP_UNSUPPORTED_NODE_RUNTIME and MCP_INVALID_STATE_ARN.
  • Verify a deploymentChecks a live endpoint with a real MCP round trip using curl and the required headers.
  • Run Dev ModeServes the deployed endpoint from a local module under serverless dev.

What you need

  • Serverless Framework
  • AWS account
  • Node.js 20 or newer
  • zod 4.2 or newer

Try asking

  • Deploy my zod tools as an MCP server on AWS Lambda with serverless.yml
  • Add Cognito authorization to my MCP route in serverless.yml
  • Debug the MCP_FUNCTION_NAME_COLLISION error in my deploy

Good to know

  • The default edge-optimized endpoint ends streams that are quiet for about 30 seconds.
  • REGIONAL endpoints raise that idle bound to roughly 5 minutes.
  • On zod 3, tools show empty input schemas in tools/list.
  • Per-server vpc, layers, provisionedConcurrency and role settings are not configurable.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/serverless-mcp/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • references/config.md30 KB
  • references/dev-mode.md1 KB
  • references/server-code.md10 KB
  • references/testing.md16 KB
Show all 6 files
  • references/troubleshooting.md20 KB

Alternatives to serverless-mcp

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

serverless-mcp: common questions

Does serverless-mcp verify access tokens?

No. The Framework never verifies tokens. Access control comes from an authorizer you configure or from your module's own gate.

Can I use this with Claude?

Yes. The skill covers exposing tools to Claude or another AI client over HTTP, and includes a claude mcp add example.

Do I need a separate server for each MCP server?

Each server in the mcp block is deployed as an ordinary function keyed by its name, so logs, invoke and rollback work per server.

How do I install serverless-mcp?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is serverless-mcp free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is serverless-mcp safe to use?

It scores 88 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to serverless-mcp?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

serverless-mcp Install

Add to stack

Loading.