Skip to content
VS Code

alttext mcp for VS Code

io.github.alttextai/alttext-mcp

Generate alt text, translate descriptions, and manage your AltText.ai image library.

client:VS Code transport:stdio runtime:npm

Install alttext mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "alttext-api-key",
      "description": "ALTTEXT_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "alttext-api-base-url",
      "description": "ALTTEXT_API_BASE_URL",
      "password": true
    }
  ],
  "servers": {
    "alttext-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@alttext_ai/alttext-mcp"
      ],
      "env": {
        "ALTTEXT_API_KEY": "${input:alttext-api-key}",
        "ALTTEXT_API_BASE_URL": "${input:alttext-api-base-url}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

alttext mcp in other clients