
Alttext Mcp
io.github.alttextai由 GitHub 帳號 alttextai 發布v1.0.5更新於 Oct 24, 2026
Generate alt text, translate descriptions, and manage your AltText.ai image library.
概覽
讓助理透過 AltText.ai API 為圖片產生與翻譯替代文字,並管理 AltText.ai 圖片庫。
- 可以做什麼
- 包裝 AltText.ai API,讓助理能依圖片網址或本機檔案產生替代文字、把現有圖片翻譯成其他語言,並讀取或修改帳戶資訊(例如點數餘額與 webhook 網址)。它也能管理圖片庫:依資源 ID 列出、搜尋、查看、更新與刪除圖片。批次工具可從含圖片網址的 CSV 產生替代文字,並掃描網頁找出缺少替代文字的圖片,排入背景產生作業。
- 適用情境
- 適合讓助理為圖片撰寫或翻譯替代文字、檢查網頁中缺少的替代文字,或在不離開聊天用戶端的情況下維護既有的 AltText.ai 圖片庫。最適合已擁有 AltText.ai 帳戶、希望以對話方式完成圖片無障礙工作的使用者。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node.js 22 或更新版本。需要在 ALTTEXT_API_KEY 環境變數中提供 AltText.ai API 金鑰;ALTTEXT_API_BASE_URL 為選用,可用於代理或替代端點。需要網路連線至 AltText.ai API,本機圖片或 CSV 路徑指的是執行用戶端的那台機器。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Alttext Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
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:
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:
from 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:
Run npm audit signatures against the pinned version, and bump it deliberately when you're ready to take a new release.
Setup
Requirements: Node.js 22+ and an AltText.ai API key
Add the server to your MCP client configuration:
Where to add this:
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:
Until then, build it from a clone of this repo:
Agent 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:
As a Claude Code plugin, from this repo's plugin marketplace:
Or 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
Generate Alt Text
Manage Image Library
Bulk Operations
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
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).
The 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.
來源:README.md,提交 b960ccc
工具
0版本歷史
1- v1.0.5最新Sep 17, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分