
Yourimageshare
io.github.MediaShareORG由 GitHub 账号 MediaShareORG 发布v1.0.6更新于 Oct 24, 2026
MCP server exposing the YourImageShare upload API (upload/list/delete) as tools for AI agents.
概览
YourImageShare 图床 API 的 MCP 服务器,让助手上传、列出、修改和删除图片并返回真实链接。
- 可以做什么
- 从本地路径、内联 base64 加文件名或公开 URL 上传图片,可设置过期时间、可见性、标题和描述
- 按 id 获取单个上传的链接、缩略图、大小和元数据
- 修改上传的可见性、标题或描述
- 按最新优先分页列出账户中的上传,每页 50 条
- 按 id 永久删除某个上传
- 适用场景
- 适合需要把截图或图片变成可分享链接的场景,例如写缺陷报告、PR 描述或支持帖,免去粘贴 base64 或手动上传。也可用于在对话中管理已有的 YourImageShare 图库。
- 运行要求
- 以 stdio 方式在本机运行,通常通过 npx 启动,需要 Node.js,无需安装。需要 YourImageShare 账户,并通过环境变量 YIS_API_KEY 提供 API 密钥。可选环境变量 YIS_BASE_URL 可覆盖 API 地址,仅用于测试。需要能访问 YourImageShare API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Yourimageshare,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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.
- Get an API key: sign in and open the API tab at yourimageshare.com/my-account.
- Full HTTP reference: yourimageshare.com/about/api.
- OpenAPI 3.1 spec: yourimageshare.com/openapi.json, if your tooling prefers that to this README.
Install / run
No install needed - run directly with npx:
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):
Environment variables
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, orurl- 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
yourimagesharenpm package, so this server's releases aren't coupled to that package's.
License
MIT
Support
来源:mcp/README.md,提交 1cb0eb5
工具
0版本历史
1- v1.0.6最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分