surplus-mcp
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SURPLUS_API_KEY | No | Your API key. Without it, only list_models is available. | |
| SURPLUS_BASE_URL | No | API endpoint. Must be https (plain http is allowed for localhost only). | https://api.surplusllm.com/api/v1 |
| SURPLUS_TIMEOUT_MS | No | Per-request timeout in milliseconds. | 120000 |
| SURPLUS_DEFAULT_MODEL | No | Model chat uses when none is given, e.g. qwen/qwen3.8-flash. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Surplus is an OpenAI-compatible inference API. Use list_models to find a model id, then chat to run it. Requests are billed to the user's Surplus key; check get_balance before long or expensive jobs.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_modelsA | List models available on Surplus with context length and USD price per 1M tokens. Use |
| chatA | Send a prompt to a model on Surplus and return its reply. Billed to the configured API key. Pass |
| get_balanceA | Show the USD credit balance and the free daily allowance for the configured API key. |
| get_usageA | List the most recent requests billed to the configured API key, newest first, with model, tokens and cost. |
| get_tee_receiptA | Fetch the signed TEE receipt for one of your confidential (tee/…) responses, to verify it ran inside the enclave. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool targets a distinct resource/action: catalog browsing (list_models), inference (chat), attestation (get_tee_receipt), and two clearly separated billing views (get_balance = current credit, get_usage = historical requests). The balance/usage pair is the only near-neighbor, and the descriptions make the boundary explicit.
Four of five tools follow a clean verb_noun snake_case pattern (list_models, get_tee_receipt, get_balance, get_usage). The single bare verb `chat` is a minor deviation, though it reads naturally for an inference endpoint.
Five tools is tightly scoped for an LLM API gateway: discovery, inference, attestation, and account visibility, with no redundant entries. Every tool earns its place.
Core workflows are covered end to end: find a model, call it, verify the TEE receipt, and monitor spend. Minor gaps exist (no per-model detail endpoint, no usage filtering/pagination, no non-chat endpoints like embeddings), but agents can work around these via list_models search and the provided usage listing.