← Back to guides

Using Agent Media Tools with Claude Code

Updated July 13, 2026 Β· 5 min read

Claude Code is Anthropic's terminal-based AI coding agent. By wiring it to Agent Media Tools, Claude can resize images, generate PDFs, scrape websites, create QR codes, and run 70+ utility tools β€” all from natural language prompts in your terminal.

⚑ One-time setup, instant superpowers. After adding the MCP server, just ask Claude: "resize this image to 800px wide" or "screenshot that URL and save it."
Package availability: the npm MCP package used in the preview configuration below is not published yet. Use the REST method now, or install the Claude Desktop package. Do not run the npm command until publication is announced.

Method 1: MCP (Preview)

The MCP (Model Context Protocol) server gives Claude direct tool access. Each tool becomes a function Claude can call autonomously.

1. Get an API key

Sign up at agentmediatools.com and generate an API key from your account dashboard.

2. Add the MCP server to Claude Code's config

Edit ~/.claude/claude_dotfiles/claude_code_mcp.json or run:

# Preview only β€” @agentmediatools/mcp-server is not published yet.
claude mcp add agent-media-tools -- \
  npx @agentmediatools/mcp-server \
  --api-key mt_your_key_here

Or add it manually to your MCP config:

# Preview only β€” use the downloadable Claude Desktop package or REST today.
{
  "mcpServers": {
    "agent-media-tools": {
      "command": "npx",
      "args": ["@agentmediatools/mcp-server"],
      "env": {
        "MEDIA_TOOL_API_KEY": "mt_your_key_here"
      }
    }
  }
}

3. Start using it

In your Claude Code terminal:

# "Take a screenshot of example.com"
# "Resize this photo to 1024px wide"
# "Convert that PDF to text"
# "Generate a QR code for my website"
# "Compress all images in this folder"

Method 2: REST API (curl or SDK)

If MCP isn't available, use the REST API directly. Claude Code can execute curl and Python natively.

# Scrape a page
curl -H "Authorization: Bearer mt_your_key_here" \
  -X POST -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","format":"markdown"}' \
  https://agentmediatools.com/api/agent/scrape

# Generate a QR code (free, no auth)
curl -X POST -H "Content-Type: application/json" \
  -d '{"text":"https://agentmediatools.com"}' \
  https://agentmediatools.com/api/qrcode -o qr.png

What Claude Can Do

After connecting, Claude Code can autonomously use these tools:

CategoryExamples
πŸ–ΌοΈ ImageResize, convert, compress, crop, analyze EXIF, batch process
πŸ“„ PDFMerge, split, compress, rotate, extract text, convert to images
🌐 WebScreenshot, HTMLβ†’PDF, article extraction, scrape
🎨 AIGenerate images/video, transcribe audio, OCR, remove backgrounds
πŸ”— UtilityQR codes, pastebin, URL shortener, UUID, password gen
πŸ” IntelDNS lookup, SSL check, WHOIS, timezone convert, regex test
πŸ“¦ DataCSVβ†’JSON, case convert, slugify, zip/unzip, unit conversion

Pro Tips

πŸ”‘ Get your free API key β†’ agentmediatools.com
Free tier: 25 API calls/day with login, 10/day anonymous.