# ImgBB — how to use (mcp.ai)

Connect your ImgBB account and use 2 tools for images and design straight from your AI agent. Connect with your own API key. ImgBB is a free image hosting and sharing service that allows users to upload and share images easily.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_imgbb?ms=1787295840000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `imgbb_get_api_key`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/imgbb`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/imgbb/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/imgbb/get/api/key` — Tool to retrieve and validate the ImgBB API key. Use before making ImgBB API calls to ensure authentication is configured.
- `POST https://api.mcp.ai/api/imgbb/upload/image` — Tool to upload an image to ImgBB. Use when you need to host an image and get back its URLs immediately.
  - body: { name?: string, image: string, expiration?: integer }

## Example prompts
- "What can I do in ImgBB?"
- "Show me a summary of my ImgBB account"

## More
- Page: https://mcp.ai/imgbb
- Agent spec (llms.txt): https://mcp.ai/imgbb/llms.txt
- Postman collection: https://mcp.ai/imgbb/postman.json
