SST MCP Server
Provides MCP tools for managing SST projects: starting and stopping sst dev with captured logs, checking status, deploying, diffing, refreshing, and removing stages, managing secrets and environment variables, listing deployed resources, and invoking Lambda functions.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
SST MCP Server
Based on: martinpllu/sst-mcp - Extended with 28 tools, MCP best practices, and production features.
Important ⚠️: This MCP server starts and manages the
sst devprocess for you. Do not runsst devmanually while the server is in control, otherwise logs will be split between terminals and agents will lose visibility. Capturing the full stdout/stderr stream directly from the spawn process is required to make all build, Vite and Lambda logs available to the agent (see discussion).
A Model Context Protocol (MCP) server that wraps the SST development experience. It exposes MCP tools that let AI agents manage SST projects, from development to deployment.
Features
Development Lifecycle
start-sst-dev – Launch
sst dev --mode=mono(live mode) with full log capturestop-sst-dev – Gracefully stop the running SST dev process
get-sst-status – Get detailed JSON status (PID, uptime, last log entry)
sst-debug – Output paths and environment info for troubleshooting
Deployment & Infrastructure
sst-deploy – Deploy infrastructure and code to AWS (
sst deploy --stage <stage>)sst-diff – Preview infrastructure changes before deployment
sst-refresh – Sync local state with cloud provider resources
sst-restart-for-infra – Full workflow: stop dev → deploy → restart dev
list-sst-stages – Show all deployed stages in the workspace
remove-sst-stage – Remove a deployed stage (
sst remove --stage <stage>)sst-unlock – Release stuck deployment locks
Observability
get-sst-logs – Get last N lines from log file (default: 50)
get-sst-errors – Extract only error messages from logs
list-sst-resources – List all deployed resources (APIs, functions, buckets)
Secret Management
sst-secret-set – Set secret values (supports fallback)
sst-secret-get – Get secret values
sst-secret-list – List all secrets
sst-secret-remove – Remove secrets
Environment Management
get-sst-env – Read current environment variables from
env.shset-sst-env – Update environment variables (triggers auto-restart if dev is running)
sst-shell-exec – Execute commands with linked resources in environment
Automatic restart when
env.shchanges
Utilities
sst-version – Get current SST CLI version
sst-upgrade – Upgrade SST CLI to specific version
invoke-sst-function – Test Lambda functions directly using
sst shellvalidate-sst-workspace – Check if directory is a valid SST project
cleanup-sst – Remove
.sstdirectory, PID files, and logs for fresh starthealth-check – Check MCP server health status
Testing & Maintenance
invoke-sst-function – Test Lambda functions directly using
sst shellvalidate-sst-workspace – Check if directory is a valid SST project
cleanup-sst – Remove
.sstdirectory, PID files, and logs for fresh start
Related MCP server: local-mcp
Installation
For npx Users (Recommended)
No installation needed! Just configure your MCP client to use npx:
# The MCP client will automatically run:
npx -y tsx /absolute/path/to/sst-mcp/mcp-server.tsFor Local Development
npm install # or pnpm install / yarn installUsage
With Kiro CLI
Add to ~/.kiro/mcp.json:
{
"mcpServers": {
"sst-mcp": {
"command": "npx",
"args": ["-y", "tsx", "/absolute/path/to/sst-mcp/mcp-server.ts"]
}
}
}Replace /absolute/path/to/sst-mcp/mcp-server.ts with the actual path on your machine.
With Kiro IDE
Add to your Kiro IDE MCP settings:
{
"mcpServers": {
"sst-mcp": {
"command": "npx",
"args": ["-y", "tsx", "/absolute/path/to/sst-mcp/mcp-server.ts"]
}
}
}With Cursor
Add to .cursor/config.json:
{
"mcpServers": {
"sst-mcp": {
"command": "npx",
"args": ["-y", "tsx", "/absolute/path/to/sst-mcp/mcp-server.ts"]
}
}
}With Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"sst-mcp": {
"command": "npx",
"args": ["-y", "tsx", "/absolute/path/to/sst-mcp/mcp-server.ts"]
}
}
}Agent Workflow
Start development: Call
start-sst-devwith{ "workspaceRoot": "/path/to/project" }Monitor logs: Tail
.sst/sst-mcp.logor useget-sst-logs/get-sst-errorsCheck status: Use
get-sst-statusto verify the dev server is runningDeploy changes: Use
sst-deployfor infrastructure changesStop development: Call
stop-sst-devwhen finished
All log output is captured in .sst/sst-mcp.log, making build and runtime messages available to agents without additional tooling.
Environment Variables
Create an env.sh file in your project root to inject custom environment variables:
export AWS_PROFILE=my-profile
export STAGE=dev
export AWS_REGION=us-east-1The server watches this file and automatically restarts the dev process when it changes.
Architecture
The server uses a centralized configuration system (config.ts) that provides:
Consistent path resolution (
.sstdirectory, log files, PID files)Configurable commands and arguments
Default values for stages and options
See docs/technical/hardcoded-paths-removal.md for implementation details.
Development
pnpm dev # Start the TypeScript entrypoint (start.ts)Documentation
Documentation Index - Full documentation overview
Getting Started Guide - Installation and setup
Tool Reference - Complete tool catalog
Architecture - System design
Credits
This project is based on martinpllu/sst-mcp by Martin Plu.
Enhancements in this version:
Expanded from 6 to 28 tools
Added MCP best practices compliance (rate limiting, timeouts, structured logging)
Implemented secret management tools
Added state management (diff, refresh, unlock)
Centralized configuration system
Comprehensive documentation
Production-ready features
Contributing
Pull requests welcome! Please include tests where relevant.
License
MIT - See LICENSE file for full text including original author credits.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Develop, manage, and debug Railway projects, services, and deployments from within agents.
Backend platform for AI agents: one agentstack.execute tool runs batched steps over +700 actions (hosting, storage, auth, payments, CRM, app builder).
Backend for AI agents: one batched tool over ~668 actions (hosting, storage, auth, payments).
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI agents to interact with Adobe Commerce Cloud projects via REST API and SSH for database queries, log reading, environment management, and more, with no PHP CLI required.1581 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to securely inspect, modify, and manage local projects with trusted filesystem access, safe Git operations, controlled task execution, and developer runtime process management over stdio or HTTP.4Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables local, permissioned development workflows from compatible AI clients, including filesystem editing, interactive terminals, durable jobs, Git operations, and semantic browser testing.44 npm1Apache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables AI clients such as Claude, Cursor, VS Code, and Windsurf to manage workspaces, projects, tasks, and AI agents through hosted OAuth or local stdio tools.2,530 npmMIT