ImgBB MCP Server
Enables uploading images to ImgBB for free hosting and returns public URLs, supporting both local files and URLs.
README
ImgBB MCP Server 🖼️
免费图床 MCP 服务 - 将图片上传到 ImgBB 并获取公网链接
📋 简介
这是一个基于 MCP (Model Context Protocol) 的免费图床服务,将 ImgBB 匿名上传功能封装为 MCP 工具,供 AI 客户端(如 Claude Desktop、Cursor 等)直接调用。
核心特性:
- ✅ 完全免费 - 无需注册、无需 API Key
- ✅ 匿名上传 - 保护隐私,无需登录
- ✅ 支持本地文件 - 直接上传本地图片
- ✅ 支持网络图片 - 传入 URL 即可转存
- ✅ 返回丰富信息 - 图片链接、缩略图、删除链接等
- ✅ MCP 标准协议 - 兼容所有 MCP 客户端
🚀 快速开始
1. 安装依赖
pip install mcp
2. 运行 MCP Server
python3 mcp_server.py
3. 配置 MCP 客户端
Claude Desktop
编辑 claude_desktop_config.json:
{
"mcpServers": {
"imgbb": {
"command": "python3",
"args": ["/path/to/imgbb-mcp/mcp_server.py"]
}
}
}
Cursor
在 Cursor 的 MCP 配置中添加:
{
"mcpServers": {
"imgbb": {
"command": "python3",
"args": ["/path/to/imgbb-mcp/mcp_server.py"]
}
}
}
🛠️ 可用工具
1. upload_image
上传图片到 ImgBB 图床(支持本地文件和网络 URL)
参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
source |
string | ✅ | 本地文件路径 或 网络图片 URL |
返回示例:
{
"success": true,
"url": "https://i.ibb.co/xxxxx/image.png",
"url_viewer": "https://ibb.co/xxxxx",
"delete_url": "https://ibb.co/delete/xxxxx",
"display_url": "https://i.ibb.co/xxxxx/image.png",
"filename": "image.png",
"width": 1920,
"height": 1080,
"size": 123456,
"size_formatted": "120 KB",
"thumb_url": "https://i.ibb.co/xxxxx/thumb-image.png"
}
2. upload_image_from_url
专门从网络 URL 上传图片
参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
url |
string | ✅ | 网络图片的完整 URL 地址 |
📦 项目结构
imgbb-mcp/
├── mcp_server.py # MCP Server 主程序
├── imgbb_upload.py # 独立上传脚本(可直接命令行使用)
├── requirements.txt # Python 依赖
├── pyproject.toml # 项目配置
├── package.json # MCP 配置(兼容格式)
└── README.md # 本文件
🔧 独立使用(无需 MCP)
也可以直接使用上传脚本:
# 上传本地图片
python3 imgbb_upload.py /path/to/image.png
# 上传网络图片
python3 imgbb_upload.py https://example.com/photo.jpg
⚠️ 注意事项
- ImgBB 是免费图床,请勿上传违规内容
- 单张图片最大支持 32MB
- 上传的图片默认 永久保存,除非手动删除
- 删除链接请妥善保存,删除后不可恢复
⚖️ 免责声明
本工具仅供学习和个人参考使用,使用者应自行注意以下事项:
- 遵守服务条款 — ImgBB 的服务条款禁止商业用途和自动化访问,使用者应自行阅读并遵守 ImgBB ToS
- 责任自负 — 使用本工具产生的一切后果由使用者自行承担,项目作者不承担任何法律责任
- 非官方关联 — 本项目与 ImgBB 无任何关联,未获 ImgBB 认可或授权
- 商业场景 — 如需商业用途,请选择合规的图床服务(如 Cloudinary、阿里云 OSS、AWS S3 等)
- 合规内容 — 请勿上传侵权、违法或违规内容
📌 工具中立原则:本项目是纯粹的技术实现,如同浏览器或下载工具一样,使用者如何使用完全取决于使用者自身。
📄 许可证
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.