- “Remove the background from assets/product.jpg”
- “Put every photo in ./team on a #F5F5F5 background”
- “How many FAPIHub requests do I have left?”
<name>_<operation>.png. The server never overwrites an existing file.
Install
1
Install uv
The server runs with
uv. Install it if you don’t have it yet.2
Get an API key
Create an API key in the dashboard. Keys look like
bg_live_sk_….3
Add the server to your agent
- Claude Code
- Claude Desktop
- Cursor
- VS Code
- Windsurf
-s user makes the server available in every project. Without it, the server is added to the current project only.Verify: start a new Claude Code session and run /mcp. fapihub should show as connected with 7 tools.Remove:4
Try it
Ask your agent: “Remove the background from assets/product.jpg”.
Test without an AI
Use the MCP Inspector to check the server on its own:- Open the URL it prints.
- Click Connect.
- Open Tools and choose
get_usage. - Click Run. You should see your plan and remaining requests.
get_usageis free.
Tools
- Each image tool takes
image_pathand an optionaloutput_path. - Colors can be hex (
#FF8C00) or RGB(A) (255, 140, 0).
Environment variables
Quota
- Each image tool call uses one request from your quota.
get_usageis free. - Invalid inputs (missing file, wrong format, wrong size) are caught locally before anything is sent, so they don’t use quota.
Troubleshooting
spawn uvx ENOENT / the server won't start
spawn uvx ENOENT / the server won't start
Use the full path to
uvx in "command" (find it with which uvx or where uvx), or install uv first."FAPIHUB_API_KEY is not set"
"FAPIHUB_API_KEY is not set"
Add the key to the
env block of your config, or to the -e flag in Claude Code."Authentication failed … Check FAPIHUB_API_KEY"
"Authentication failed … Check FAPIHUB_API_KEY"
The key is wrong or deactivated. Create a new one in the dashboard.
"Monthly request limit reached …" (402)
"Monthly request limit reached …" (402)
Your quota is used up. Check it with
get_usage, and upgrade at fapihub.com/billing."Rate limit exceeded. Retry after N seconds."
"Rate limit exceeded. Retry after N seconds."
Wait N seconds, then try again. Retrying is free.
The tools don't appear
The tools don't appear
Fully restart the app or start a new session. The server is loaded only at startup.
Updates
uvx fetches the latest version from GitHub. To force an update, run uv cache clean fapihub-mcp or restart the app.
fapihub-mcp on GitHub
Source code, issues and the latest install instructions.
Not the same as the docs MCP server. Mintlify also hosts an MCP server for this documentation at
https://docs.fapihub.com/mcp. It lets AI tools search these docs; it doesn’t process images. To edit images, use the FAPIHub MCP server above.