mcpField
S
Stakpak MCP Server

Stakpak MCP Server

Local
github.com/stakpakCloud & Infra18Updated 17w ago

About Stakpak MCP Server

Stakpak MCP Server connects the Stakpak API to MCP for developers who need infrastructure code for a project. Its listed capability is a focused generation tool.

Key features

  1. 01Generate project infrastructure code
  2. 02Access capabilities through Stakpak API
  3. 03Requires a Stakpak API key

Use cases

  1. 01Generate infrastructure code for a project

MCP support

As an MCP server, it exposes a tool for generating infrastructure code through the Stakpak API to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"stakpak": {
"command": "npx",
"args": [
"-y",
"@stakpak/mcp"
]
}
}
}
Run commandnpx -y @stakpak/mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@stakpak/mcp

Tools

1

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
promptstringYesNatural language description of what infrastructure code to generate
provisionerenumYesTarget infrastructure platform to generate code for (e.g. Terraform for cloud resources, Kubernetes for container orchestration)Terraform | Kubernetes | Dockerfile | GithubActions
selected_contentarrayNoArray of code selections to use as context for generation
resolve_validation_errorsbooleanNoWhether to attempt automatic fixes for any validation errors in the generated code

Details

From the project README

Stakpak MCP Server

A MCP server that connects to Stakpak API.

Usage

Stakpak API Key

Before using the MCP server, you'll need to obtain a Stakpak API key. You can get your API key by:

  1. Visiting Stakpak's website
  2. Logging into your account
  3. Going to your profile and navigating to the API keys section

For detailed instructions, see the Stakpak API Key Management documentation.

Claude Desktop
  • To install in a project, add the MCP server to your claude_desktop_config.json:
{
  "mcpServers": {
    "stakpak": {
      "command": "npx",
      "args": ["@stakpak/mcp@latest", "--output=resource"],
      "env": {
        "STAKPAK_API_KEY": "<your-stakpak-api-key>"
      }
    }
  }
}
Cursor
  • To install in a project, add the MCP server to your .cursor/mcp.json:
{
  "mcpServers": {
    "stakpak": {
      "command": "npx",
      "args": ["@stakpak/mcp@latest STAKPAK_API_KEY=<YOUR_API_KEY>"]
    }
  }
}
  • To install globally, add this command to your Cursor settings:
npx @stakpak/mcp STAKPAK_API_KEY=<your-stakpak-api-key>
Windsurf
  • Add the MCP server to your ~/.codeium/windsurf/mcp_config.json file:
{
  "mcpServers": {
    "stakpak": {
      "command": "npx",
      "args": ["@stakpak/mcp@latest"],
      "env": {
        "STAKPAK_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Tools

This MCP server provides the following tools for interacting with the Vercel API:

Generation
  • generate_infrastructure_code - Generate infrastructure code for a project
Development

To set up the development environment:

  1. Clone the repository:
git clone https://github.com/stakpak/mcp.git
cd mcp
  1. Install dependencies:
bun install
  1. Build the project:
bun build
  1. Install the MCP server globally:
 npx @modelcontextprotocol/inspector node  <path-to-your-build-file> -e STAKPAK_API_KEY=<your-stakpak-api-key>
  1. Add the MCP server to your project:
IDE Integration

The MCP server can be integrated with various IDEs:

Cursor

Add the MCP server to your .cursor/mcp.json:

{
  "mcpServers": {
    "stakpak": {
      "command": "node",
      "args": [
        "<path-to-your-build-file> STAKPAK_API_KEY=<your-stakpak-api-key>"
      ]
    }
  }
}

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.