New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@alttext_ai/alttext-mcp

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alttext_ai/alttext-mcp

MCP server for AltText.ai — generate alt text, manage image libraries, and audit web pages for accessibility

Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
69
18.97%
Maintainers
1
Weekly downloads
 
Created
Source

AltText.ai MCP Server

An MCP server that lets AI assistants generate alt text, manage image libraries, and audit web pages for accessibility using the AltText.ai API.

Works with Claude Desktop, Claude Code, Cursor, Windsurf, and any MCP-compatible client.

Setup

Requirements: Node.js 18+ and an AltText.ai API key

Add the server to your MCP client configuration:

{
  "mcpServers": {
    "alttext-ai": {
      "command": "npx",
      "args": ["-y", "@alttext_ai/alttext-mcp"],
      "env": {
        "ALTTEXT_API_KEY": "your-api-key"
      }
    }
  }
}

Where to add this:

ClientConfig file
Claude Desktopclaude_desktop_config.json
Claude Code.mcp.json in your project root
CursorMCP settings in the Cursor preferences
WindsurfMCP settings in the Windsurf preferences

Tools

Account Management

ToolDescription
get_accountCheck your credit balance, usage, and account settings.
update_accountUpdate account name, webhook URL, or notification email.

Generate Alt Text

ToolDescription
generate_alt_textGenerate alt text for an image URL. Supports multilingual output, custom prompts, keywords, and character limits. Costs 1 credit.
generate_alt_text_from_fileGenerate alt text from a local image file. Automatically base64-encodes and uploads. Costs 1 credit.
translate_imageAdd alt text in a new language for an existing image (by asset_id). Costs 1 credit.

Manage Image Library

ToolDescription
list_imagesList images in your library with pagination.
search_imagesSearch your image library by alt text content.
get_imageGet details for a specific image by asset ID.
update_imageUpdate alt text, tags, or metadata for an image.
delete_imageDelete an image from your library.

Bulk Operations

ToolDescription
bulk_createBulk generate alt text from a CSV file with image URLs and optional metadata.
scrape_pageScan a web page, find images missing alt text, and queue generation. Results are async -- use list_images to check progress.

Example Prompts

Once configured, just ask your AI assistant:

Account & Credits

  • "How many credits do I have left?"
  • "Update my webhook URL to https://example.com/webhook"

Generate Alt Text

  • "Generate alt text for https://example.com/photo.jpg"
  • "Generate alt text for this image" (with local file)
  • "Generate alt text in French and Spanish for this image"
  • "Translate image abc123 to German"

Manage Library

  • "Search my images for 'product photo'"
  • "List my images"
  • "Get details for image abc123"
  • "Update the alt text for asset abc123"
  • "Delete image xyz789"

Bulk Operations

  • "Scan https://example.com for images missing alt text"
  • "Process this CSV file of image URLs" (bulk_create)

Environment Variables

VariableRequiredDescription
ALTTEXT_API_KEYYesYour AltText.ai API key
ALTTEXT_API_BASE_URLNoOverride the API base URL (default: https://alttext.ai/api/v1)

Development

npm install
npm run build
npm test
npm run lint

Tests use mocked fetch calls -- no API key or network access needed.

License

MIT

Keywords

mcp

FAQs

Package last updated on 20 Feb 2026

Related posts