Alttextgeneratorai Mcp

io.github.balt1794由 GitHub 账号 balt1794 发布v1.0.2更新于 Oct 25, 2026

Write SEO-friendly alt text for images with AI and find images missing alt text on any web page.

概览

AI 生成的概览

一个本地 MCP 服务器,让助手借助 AltTextGeneratorAI 为图片生成利于 SEO 的替代文本,并检查网页中缺少替代文本的图片。

可以做什么
为公开 URL 的图片生成替代文本,可选 130 多种语言,每张消耗 1 个额度。为允许文件夹中的本地图片文件(JPEG、PNG、GIF 或 WebP,最大 3 MB)生成替代文本。审计网页并列出缺少或为空的 alt 属性的图片,可选为最多 25 张图片生成建议文本。查询剩余额度。
适用场景
适合需要为产品或内容图片提供无障碍、利于 SEO 的替代文本,或想找出页面上缺少替代文本的图片并获得可自行添加的建议时使用。
运行要求
需要 Node.js 18 或更高版本,通过 npx 以 stdio 在本地运行。生成替代文本和查询额度需要 ALTTEXTGENERATORAI_API_KEY 中的 AltTextGeneratorAI API 密钥;不生成时的审计无需密钥。需要访问 AltTextGeneratorAI API 的网络。可选 ALTTEXTGENERATORAI_ALLOWED_DIR 和 ALTTEXTGENERATORAI_API_BASE_URL。
安装前请注意
生成会消耗付费额度(一次性购买,各集成共享);带生成的审计每张图片消耗 1 个额度。API 密钥会发送给 AltTextGeneratorAI,图片地址或图片文件也会上传到该服务,该服务会下载公开图片地址。服务器只读取和建议,不会修改你的网站。本地文件读取仅限允许的文件夹。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Alttextgeneratorai Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

AltTextGeneratorAI MCP server

[npm] [license]

Let your AI assistant write SEO-friendly, accessible alt text for images, and find the images that are missing alt text on any web page. It works with AltTextGeneratorAI.com, the AI alt text service used in Shopify, WordPress, DatoCMS, Contentstack, Chrome and 30+ other tools.

Ask your assistant things like:

  • "Write alt text for https://example.com/photo.jpg in Spanish."
  • "Write alt text for the image at ~/Desktop/product.png."
  • "Scan https://mystore.com/products/shoes and tell me which images have no alt text."
  • "Scan that page and write alt text for the first 10 images that are missing it."
  • "How many credits do I have left?"

Get an API key

Create a free account at alttextgeneratorai.com/dashboard and copy your API key. New accounts get free credits. Credits are a one-time purchase, never expire, and are shared with every AltTextGeneratorAI integration.

Install

You need Node.js 18 or newer. The server is started on demand with npx, so there is nothing to install by hand.

Claude Desktop

Open Settings > Developer > Edit Config and add:

json
{  "mcpServers": {    "alttextgeneratorai": {      "command": "npx",      "args": ["-y", "alttextgeneratorai-mcp"],      "env": { "ALTTEXTGENERATORAI_API_KEY": "your_api_key" }    }  }}

Claude Code

bash
claude mcp add alttextgeneratorai --env ALTTEXTGENERATORAI_API_KEY=your_api_key -- npx -y alttextgeneratorai-mcp

Cursor

Add the same JSON as above to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).

VS Code

Add to .vscode/mcp.json:

json
{  "servers": {    "alttextgeneratorai": {      "command": "npx",      "args": ["-y", "alttextgeneratorai-mcp"],      "env": { "ALTTEXTGENERATORAI_API_KEY": "your_api_key" }    }  }}

Any other client that supports MCP servers over stdio works the same way: run npx -y alttextgeneratorai-mcp with the ALTTEXTGENERATORAI_API_KEY environment variable.

Tools

ToolWhat it doesCredits
generate_alt_textWrites alt text for an image at a public URL. Optional language.1
generate_alt_text_from_fileWrites alt text for an image file on your computer (JPEG, PNG, GIF or WebP, up to 3 MB). Optional language.1
audit_pageReads a web page and lists the images that have no alt attribute, or an empty one. Free. With generate: true it also writes suggested alt text for them (max_images up to 25, default 5).0, or 1 per image with generate
check_creditsShows how many credits you have left.0

Notes:

  • Languages: pass the language name in English, for example spanish, french, german, japanese. 130+ are supported. The default is English.
  • Empty alt text (alt="") is correct for purely decorative images, so audit_page reports those separately from images where the attribute is missing.
  • Pages that load images with JavaScript may show fewer images, because the tool reads the page's HTML.
  • The tool only reads and suggests. It never changes your website. Add the suggested text to your site yourself, or ask your assistant to do it in your code.

Configuration

VariableRequiredDescription
ALTTEXTGENERATORAI_API_KEYYes, for generating and creditsYour API key. audit_page without generate works without it.
ALTTEXTGENERATORAI_ALLOWED_DIRNoFolder (or several, separated by : on Mac and Linux, ; on Windows) that generate_alt_text_from_file may read. Default: your home folder and the temp folder.
ALTTEXTGENERATORAI_API_BASE_URLNoOverride the API address (for testing). Must be https, or http on localhost. Default https://alttextgeneratorai.com/api.

Safety

  • audit_page only reads public web pages. Local and private network addresses (localhost, 192.168.x.x, 10.x.x.x, cloud metadata addresses) are refused, including after redirects. The address is checked at the moment the connection is made, so a hostname cannot point somewhere else the second time.
  • generate_alt_text_from_file only reads real images, and only in allowed folders. By default that is your home folder and the temp folder. Choose other folders, or narrow it to one, with ALTTEXTGENERATORAI_ALLOWED_DIR. The file's contents are checked, not just its name.
  • Your API key is read from an environment variable, sent only to the AltTextGeneratorAI API over https, and never written to logs. A custom API address must use https.
  • Error messages are short and never include raw technical output.

Privacy

To write alt text, the server sends your API key, the chosen language and either the image's public address or the image file itself to AltTextGeneratorAI.com. When you give an image address (including with audit_page and generate: true), the AltTextGeneratorAI service downloads that image to describe it, and it only accepts public web addresses. audit_page downloads the page you ask about directly from your computer. Nothing else is sent. See the privacy policy.

Development

bash
npm installnpm run buildnpm test      # runs the server over stdio against a fake API

Support

[email protected] · alttextgeneratorai.com

License

MIT

来源:README.md,提交 9f16aa7

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.2最新Oct 17, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分