Yourimageshare

io.github.yourimagesharev1.1.0更新于 Oct 8, 2026

MCP server exposing the YourImageShare upload API (upload/list/delete) as tools for AI agents.

已验证STDIO仅桌面Files & StorageMedia & Design

概览

AI 生成的概览

让助手在 YourImageShare 账户上上传、列出、更新和删除图片,并返回可分享的链接。

功能
把 YourImageShare 上传 API 封装为 MCP 工具:upload_image 支持本地路径、带文件名的内联 base64,或公开的 http(s) 链接,并返回链接、缩略图、尺寸和大小。get_upload、update_upload、list_uploads 和 delete_upload 可读取、修改可见性/标题/描述、分页浏览并永久删除上传内容。上传时可设置过期时间,到期后自动删除。
适用场景
适合助手需要把截图或图片变成真实 URL,用于缺陷报告、拉取请求或支持帖,而不是粘贴 base64 的场景。也便于列出和管理账户中已有的图片。
运行要求
通过 stdio 在本地运行,通常使用 npx yourimageshare-mcp,因此需要 Node.js 和网络访问。需要 YourImageShare 账户和 API 密钥,通过环境变量 YIS_API_KEY 提供。可选变量 YIS_BASE_URL 可覆盖 API 基础地址,仅供测试。
安装前请注意
该服务器只以 YIS_API_KEY 对应的账户身份操作,但该密钥拥有上传、编辑和永久删除权限,应视为机密。上传内容会发送到 YourImageShare 的服务器,通过本地路径提供的文件会被该服务器进程读取。新上传会返回一次性的 delete_url;delete_upload 会永久删除文件。默认可见性为 unlisted,即任何拿到链接的人都能查看文件和页面。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

yourimageshare-mcp

[npm version] [npm downloads] [smithery badge] [yourimageshare MCP server]

MCP (Model Context Protocol) server for YourImageShare. Built for AI coding agents (Claude Code, Cursor, and other MCP-compatible tools) - paste a screenshot into a bug report, a PR description, or a support thread as a real URL instead of a base64 blob or a manual upload step. Works the same way with Claude Desktop and any other MCP client.

Install / run

No install needed - run directly with npx:

bash
npx yourimageshare-mcp

Also listed on Smithery, if your MCP client installs from there instead.

Claude Desktop / Claude Code config

Add to your MCP client's config (e.g. claude_desktop_config.json):

json
{  "mcpServers": {    "yourimageshare": {      "command": "npx",      "args": ["-y", "yourimageshare-mcp"],      "env": {        "YIS_API_KEY": "YOUR_API_KEY"      }    }  }}

Environment variables

VariableRequiredPurpose
YIS_API_KEYyesYour YourImageShare API key.
YIS_BASE_URLnoOverride the API base URL (default https://yourimageshare.com/api). For testing only.

Tools

upload_image

Upload a file (up to 200 MB - files over 90 MB are sent in pieces automatically). Provide exactly one of:

  • path - a local file path this server process can read,
  • base64 + filename - inline file contents, for MCP clients with no local filesystem access, or
  • url - a public http(s) link the YourImageShare server downloads itself.

Optional expiresIn (seconds, 60 to 2,592,000 = 30 days) auto-deletes the upload later. If the account already uploaded this exact file, the existing upload is returned with duplicate: true; set allowDuplicate to store a new copy. Returns id, type, path, src, direct, thumb (280 px WebP thumbnail), width, height, size, locked, expires_at and duplicate - store src, since path can change after conversion.

Also optional: visibility (unlisted by default - file and page for anyone with the link; private - file only, no page for others; public - listed), title (90 characters) and description (500). New uploads return a one-time delete_url.

get_upload

Requires id. Returns that upload's links, thumbnail, size, visibility, title and description.

update_upload

Requires id, plus any of visibility, title, description. Only what you pass changes; an empty string clears a title or description.

list_uploads

Optional page (defaults to 1, 50 per page). Returns your uploads newest first.

delete_upload

Requires id (from upload_image/list_uploads). Permanently deletes the upload.

Notes

  • This server only ever acts as the account tied to YIS_API_KEY - there's no way for a connected agent to act as any other account.
  • Errors from the API (bad key, rate limit, file rejected by moderation, etc.) come back as a tool error result with the API's own message, not a crashed tool call.
  • Built as a small, self-contained client rather than depending on the separate yourimageshare npm package, so this server's releases aren't coupled to that package's.

License

MIT

Support

yourimageshare.com/contact

来源:mcp/README.md,提交 608456d

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v1.1.0最新Oct 8, 2026