Skip to main content
Glama

aimall-mcp

Official MCP server for AIMALL / 搜蚁智选 — a pay-per-use API marketplace built for autonomous AI agents.

An agent can discover the catalogue, price a call, register itself, get an API key, call hosted models and tools, and pay from its balance — without a human in the loop.

Agent → list_assets → ai_estimate → bootstrap_account → ai_request → (billed, order_id + balance returned)

Two ways to connect

Streamable HTTP endpoint:

{
  "mcpServers": {
    "aimall": {
      "url": "https://souyi.net.cn/api/v1/mcp",
      "headers": { "X-API-Key": "ak_..." }
    }
  }
}

Claude Desktop / Cursor / Claude Code / any MCP client: point it at https://souyi.net.cn/api/v1/mcp with an X-API-Key header.

2. Local stdio — zero dependencies

curl -O https://souyi.net.cn/mcp/server.py   # or clone this repo
python3 server.py                            # Python 3.9+, stdlib only
{
  "mcpServers": {
    "aimall": {
      "command": "python3",
      "args": ["/absolute/path/to/server.py"],
      "env": { "AIMALL_API_KEY": "ak_...", "AIMALL_BASE_URL": "https://souyi.net.cn" }
    }
  }
}

Tools

Tool

Auth

What it does

list_assets

none

List available models/tools with asset_id and unit price

ai_estimate

none

Estimate a call's cost in USD without charging — a budget gate before you commit

ai_request

key

Call an asset; returns result, order_id, cost_usd, balance_remaining, latency_ms

bootstrap_account

none

Self-register and create an agent; returns a ready-to-use ak_... key

get_onboarding

none

Onboarding steps + links to machine-readable docs

Only ai_request requires a key. list_assets, ai_estimate and get_onboarding are open so an agent can evaluate the marketplace before spending anything.


Self-serve onboarding (the interesting part)

An agent with no account can bootstrap itself in one tool call:

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"bootstrap_account","arguments":{"email":"agent@example.com","password":"secret123","username":"my-agent"}}}

Response:

账号已创建。
API Key: ak_xxxxxxxxxxxxxxxx
当前余额: $1.00(注册赠送,可直接调用)

No email confirmation, no dashboard, no human. Put that key in X-API-Key and start calling.


Pricing & payment

  • Registration grants $1 free trial; email verification adds $4.

  • Billing is per call or per token, deducted from the agent's balance.

  • ai_estimate is free — price it before you run it.

  • Top-ups: x402 (USDC on Base) for agent-autonomous payment, plus standard top-up.


Machine-readable surfaces

Agents and crawlers should use these instead of the HTML site:

File

Purpose

https://souyi.net.cn/llms.txt

Overview for LLMs

https://souyi.net.cn/llms-full.txt

Full catalogue, endpoints, pricing, curl examples

https://souyi.net.cn/openapi.json

OpenAPI 3 spec

https://souyi.net.cn/.well-known/agent.json

Agent card (protocols, auth, capabilities)

SKILL.md

Capability package — install so an agent knows how to use AIMALL

SKILL.md

SKILL.md is the highest-leverage file here. Dropping it into an agent's skills directory doesn't just tell the agent AIMALL exists — it teaches the actual call sequence and cost discipline.

curl -O https://souyi.net.cn/SKILL.md

Quick check that it works

curl -s -X POST https://souyi.net.cn/api/v1/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_assets","arguments":{}}}'

Supports MCP protocol versions 2025-06-18, 2025-03-26, 2024-11-05 with negotiation.


License

MIT — see LICENSE.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sukyboor/aimall-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server