DEV Community

aimall
aimall

Posted on

I built a zero-dependency open-source MCP server so any AI agent can call any AI tool (pay-per-use)

Most MCP servers demand a pile of pip install dependencies that break on install. Mine uses only the Python standard library — clone it, python3 server.py, done.

It wraps a complete AI tool marketplace (AIMALL) into 5 standard MCP tools, so any MCP client — Claude, Cursor, LangChain, Dify, Coze — loads it in one click.

The wall every agent builder hits

  • Want web search or image gen? Register per vendor, read docs, wire SDKs, manage a Key zoo.
  • Every vendor bills differently; balances are scattered; you can't tell what one task cost.
  • Swap a model → edit code; swap a vendor → rewrite the adapter.

Result: 80% of agent projects die before their first external AI call.

The fix: AI tools as plug-and-play standard parts

One endpoint /api/v1/ai/request, one X-API-Key, per-call metering, one unified order + balance.

{
  "mcpServers": {
    "aimall": {
      "command": "python3",
      "args": ["/your/path/aimall-mcp/server.py"],
      "env": { "AIMALL_API_KEY": "ak_your_key" }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Five tools:

  • list_assets — list every asset (ID, type, unit price)
  • ai_estimate — price a call without charging (budget gate)
  • ai_request — actually call; returns result + order + balance
  • bootstrap_account — self-serve register + create agent key
  • get_onboarding — onboarding steps + docs

Why agents care

  • Discoverable: llms.txt / openapi.json / agent.json let frameworks understand "what can this platform do, how do I call it"
  • Unified: one endpoint, one key, one bill
  • Zero friction: $1 free trial on signup (+$4 after email verify), x402 (Base USDC) self top-up, no human approval
  • Verifiable: live per-asset telemetry (success rate, p95 latency), signed outcome records, ERC-8004 agent cards

Bonus: a download accelerator

git clone slow? The platform ships a reverse-proxy download accelerator that routes GitHub / Gitee / GitLab traffic through edge cache:

curl -H "X-API-Key: ak_your_key" \
  "https://souyi.net.cn/api/v1/accel?url=https://raw.githubusercontent.com/owner/repo/main/file"
Enter fullscreen mode Exit fullscreen mode

Free 5 GB/month; beyond that it throttles to 200 KB/s (no block, no charge), allowlist-only to block SSRF.

Drop your agent + AIMALL workflow in the comments.

Top comments (0)