# GenHTTP Lambda MCP server

> Allows an AI client to write, deploy, and host small C# web services and sites at a public address.

- Repository: https://github.com/MDA2AV/GenHTTP.Lambda
- Page: https://hostedmcp.org/servers/mda2av/genhttp-lambda
- Transport: remote
- Stars: 4
- License: MIT
- Latest version: 0.1.0

## Install

### Claude Code

```sh
claude mcp add --transport http genhttp-lambda https://genhttp.dev/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "genhttp-lambda": {
      "url": "https://genhttp.dev/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "genhttp-lambda": {
      "type": "http",
      "url": "https://genhttp.dev/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"genhttp-lambda","type":"http","url":"https://genhttp.dev/mcp"}'
```

### Codex

```sh
codex mcp add genhttp-lambda --url https://genhttp.dev/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.genhttp-lambda]
url = "https://genhttp.dev/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http genhttp-lambda https://genhttp.dev/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "genhttp-lambda": {
      "url": "https://genhttp.dev/mcp",
      "type": "http"
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `LAMBDA_CERTIFICATE` | no | no |  |
| `LAMBDA_CERTIFICATE_KEY` | no | no |  |
| `LAMBDA_HOSTING_URL` | no | no |  |
| `LAMBDA_TLS_PORT` | no | no |  |

## FAQ

### How do I deploy a C# snippet?

You write a C# snippet that returns a GenHTTP IHandler and press deploy to get a public URL.

### How is the code compiled?

The code snippet is compiled using Roslyn at runtime.

### Can I use this for agent-based development?

Yes, there is a specific endpoint for agents and a route for connecting an agent to publish what it built.
