AltText.ai MCP Server
OfficialManage AltText.ai account, generate alt text for images, and organize an image library.
Account management: check credits/usage and update account settings (name, webhook, notification email).
Alt text generation: generate alt text from a public image URL or a local file, with options for languages, keywords, custom prompts, character limits, and overwriting. Translate existing images into new languages.
Image library management: list, search, get details, update (alt text, tags, metadata), and delete images.
Bulk operations: queue alt text generation from a CSV file or scrape a web page to find images missing alt text and queue generation asynchronously.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AltText.ai MCP Server Generate alt text for https://example.com/photo.jpg"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AltText.ai MCP Server
An MCP server that lets AI assistants generate alt text, manage image libraries, and queue alt text generation for web page images using the AltText.ai API.
Works with Claude Desktop, Claude Code, Cursor, Windsurf, and any MCP-compatible client.
Verify this package
This server runs npx -y @alttext_ai/alttext-mcp, which downloads and executes code with your API key in its environment. That's worth a moment of verification before you install — by you or by an AI agent doing the setup. Everything below should match:
Signal | Value |
npm package | |
Source repository | |
Publisher | AltText.ai |
Provenance | Published from this repo's CI with npm provenance — npm shows a verified build badge linking the package to this exact commit |
The npm scope is @alttext_ai (with an underscore), while the GitHub org is alttextai (no underscore). This is intentional, not a typosquat: the @alttextai npm scope was already taken, so we publish under @alttext_ai. The two names refer to the same official AltText.ai package.
To cryptographically verify the published package was built by this repo's CI — not just trust the metadata — run:
npm audit signaturesfrom a project where the package is installed. This validates the registry signature and the npm provenance attestation, which links the tarball to a specific commit and GitHub Actions build. A counterfeit package can forge repository.url and other metadata, but it cannot forge the provenance attestation — so this is the check that actually matters.
(For a quick, weaker cross-reference of the claimed source you can run npm view @alttext_ai/alttext-mcp repository.url, but note that field is publisher-controlled metadata and proves nothing on its own.)
Pinning a version
The setup snippet uses npx -y @alttext_ai/alttext-mcp, which always resolves to the latest published version and re-runs it on every launch. That keeps you current, but it also means a future release runs automatically without review. If you want a reproducible, audited install, pin a specific version:
"args": ["-y", "@alttext_ai/alttext-mcp@1.0.5"]Run npm audit signatures against the pinned version, and bump it deliberately when you're ready to take a new release.
Related MCP server: aria51 MCP Server
Setup
Requirements: Node.js 22+ 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:
Client | Config file |
Claude Desktop |
|
Claude Code |
|
Cursor | MCP settings in the Cursor preferences |
Windsurf | MCP settings in the Windsurf preferences |
Command-line tool
The same operations are available as the alttext command, which also manages an account's site API keys with a full-access key. See packages/cli/README.md for commands, flags and exit codes.
Once @alttext_ai/cli is released on npm:
npm install -g @alttext_ai/cli
alttext login
alttext whoamiUntil then, build it from a clone of this repo:
npm install
npm run build
npm link --workspace packages/cliAgent skill
skills/alttext teaches Claude Code, Codex and other coding agents to drive the alttext CLI: checking whoami first, parsing --json, dry-running and asking before a rotate, revoke or delete, keeping tokens out of the conversation, and the reseller workflows for onboarding, billing and leaked keys. The skill contains no credentials, and it tells the agent to have you run alttext login yourself rather than paste a key into chat. It needs the CLI installed.
With npx skills, for any supported agent:
npx skills add alttextai/alttext-mcp --skill alttextAs a Claude Code plugin, from this repo's plugin marketplace:
claude plugin marketplace add alttextai/alttext-mcp
claude plugin install alttext@alttext-aiOr in one step inside a Claude Code session (2.1.275 or later): /plugin install alttext --marketplace alttextai/alttext-mcp.
From a local clone, pass the clone's path instead: npx skills add ./alttext-mcp --skill alttext, or claude plugin marketplace add ./alttext-mcp.
Tools
Account Management
Tool | Description |
| Check your credit balance, usage, and account settings. |
| Update account name, webhook URL, or notification email. |
Generate Alt Text
Tool | Description |
| Generate alt text for an image URL. Supports multilingual output, custom prompts, keywords, and character limits. Uses account credits. |
| Generate alt text from a local image file. Automatically base64-encodes and uploads. Uses account credits. |
| Add alt text in a new language for an existing image (by asset_id). Uses account credits. |
Manage Image Library
Tool | Description |
| List images in your library with pagination. |
| Search your image library by alt text content. |
| Get details for a specific image by asset ID. |
| Update alt text, tags, or metadata for an image. |
| Delete an image from your library. |
Bulk Operations
Tool | Description |
| Bulk generate alt text from a CSV file with image URLs and optional metadata. |
| Scan a web page, find images missing alt text, and queue generation. Results are async -- use |
Effects and processing
This package uses stdio and runs on the machine launching the MCP client. Image and CSV paths refer to that machine; selected file contents are uploaded to AltText.ai.
Generation and translation use your account credits. Additional languages and image conversion can increase the total. Check get_account before paid work. Generation can overwrite existing alt text when requested; updates replace supplied fields and deletion removes the image from the library.
CSV imports and page scraping queue background processing. An accepted request does not mean generation has finished; inspect the image library and any configured completion notifications. Tool annotations describe effects for clients; they do not enforce confirmation.
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
"Generate alt text for images missing it on https://example.com"
"Process this CSV file of image URLs" (bulk_create)
Environment Variables
Variable | Required | Description |
| Yes | Your AltText.ai API key |
| No | Override the API base URL (default: |
Development
The repo is an npm workspace: packages/core (private API client, schemas and formatters, bundled into each published package), packages/mcp (@alttext_ai/alttext-mcp) and packages/cli (@alttext_ai/cli, the alttext command).
npm install
npm run checkThe root package.json version is the only one to edit. npm run version:stamp copies it into every package and server.json, and CI fails when they drift. A v* tag matching that version publishes both packages.
Tests use mocked fetch calls -- no API key or network access needed.
npm run skills:validate checks each skill's frontmatter and links, and that every alttext command and flag a skill mentions exists in the built CLI. It runs as part of npm run check, after the build.
Hosted deployments must rate-limit POST /register at a trusted edge using the verified client address. The Node service deliberately ignores forwarded client-address headers because accepting them without an authenticated proxy boundary would let callers spoof the rate-limit identity.
The production container and required settings are documented in docs/deployment.md.
License
MIT
Registry publishing
server.json describes the stdio npm package. Its name matches mcpName in packages/mcp/package.json; both versions must match the release being submitted. Publish and verify that exact npm version before running mcp-publisher publish. Registry acceptance and directory approval are separate from an npm release.
Available Tools
12 toolsbulk_createBulk CreateADestructive
Upload a local CSV file from the MCP server machine and queue asynchronous alt-text generation using account credits. The response does not confirm generation completion. CSV should have columns: url (required), asset_id, lang, keywords, tags, metadata (optional).
Inputs: csv_file (required), email.
delete_imageDelete ImageADestructiveIdempotent
Delete an image from your AltText.ai library
Inputs: asset_id (required).
generate_alt_textGenerate Alt TextADestructive
Generate AI-powered alt text for an image URL. Returns the result synchronously (may take a few seconds). Uses account credits; additional languages and image conversion can increase the total. Can overwrite existing alt text when requested.
Inputs: url (required), lang, tags, asset_id, +6 more.
generate_alt_text_from_fileGenerate Alt Text from FileADestructive
Generate alt text from a local image file. Reads a file on the MCP server machine and uploads it to AltText.ai. Uses account credits; additional languages and image conversion can increase the total. Can overwrite existing alt text when requested.
Inputs: file_path (required), lang, tags, asset_id, +6 more.
get_accountGet AccountARead-onlyIdempotent
Get your AltText.ai account info including credit balance, usage, and settings
Inputs: no named parameters.
get_imageGet ImageARead-onlyIdempotent
Get details for a specific image by its asset ID
Inputs: asset_id (required), lang.
list_imagesList ImagesBRead-onlyIdempotent
List images in your AltText.ai library with pagination
Inputs: url, lang, page, sort, +2 more.
scrape_pageScrape PageADestructive
Find images on a web page and queue alt-text generation jobs. Uses account credits. Images are processed asynchronously; inspect the image library for results.
Inputs: url (required), html, lang, keywords, +4 more.
search_imagesSearch ImagesARead-onlyIdempotent
Search images by alt text content
Inputs: query (required), lang, limit.
translate_imageTranslate ImageA
Add alt text in a new language for an existing image. Uses the asset_id to find the image and generates a translation. Uses account credits for each newly generated language.
Inputs: lang (required), asset_id (required).
update_accountUpdate AccountADestructiveIdempotent
Update your AltText.ai account settings (name, webhook URL, notification email)
Inputs: name, webhook_url, notification_email.
update_imageUpdate ImageADestructiveIdempotent
Update alt text and/or metadata for an existing image
Inputs: asset_id (required), lang, tags, alt_text, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool targets a distinct resource and action: account management, single-image generation by URL/file, translation, image library CRUD, and batch/scrape enqueueing. The potentially similar generation tools are clearly separated by input type and sync/async behavior.
All tool names use lowercase snake_case and generally follow a verb_noun pattern (get_account, list_images, delete_image). Longer names like generate_alt_text_from_file and bulk_create remain predictable and readable.
Twelve tools is well-scoped for an alt-text generation service covering account settings, image library operations, single generation, translation, and batch workflows. Every tool maps to a meaningful operation without redundancy.
The surface covers account management, CRUD for images, and multiple generation paths (URL, file, translation, CSV batch, web scraping). The main gap is the lack of an explicit async job status tool; bulk_create and scrape_page require inspecting the image library to confirm completion.
Maintenance
Related MCP Connectors
Image and video AI tools and your own pipelines, run from any AI assistant.
Run accessibility, contrast, and design token audits and file QA issues from your AI coding tool.
Find and call verified APIs from any AI assistant, with free trial calls and previewed writes.
Generate AI images, videos, music, SFX & speech in any AI assistant. Results appear inline in chat.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to generate images, text, and audio content through the Pollinations APIs. Provides direct access to multimodal generation capabilities including image creation from text prompts, text-to-speech, and text generation.12MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding assistants to test web accessibility by scanning URLs, detecting violations, and running focused audits on keyboard navigation, screen reader compatibility, and WCAG criteria — all within the assistant's loop.MIT
- AlicenseAqualityDmaintenanceProvides conversational, actionable accessibility testing for AI agents, including auditing, prioritization, and code-level fixes.22MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to manage Cloudinary media assets, including uploading, searching, transforming, and organizing images and videos through natural language.1,411 npmMIT