Skip to main content
Glama
surplus-mcp

surplus-mcp

Official
by surplusrh

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SURPLUS_API_KEYNoYour API key. Without it, only list_models is available.
SURPLUS_BASE_URLNoAPI endpoint. Must be https (plain http is allowed for localhost only).https://api.surplusllm.com/api/v1
SURPLUS_TIMEOUT_MSNoPer-request timeout in milliseconds.120000
SURPLUS_DEFAULT_MODELNoModel 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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_modelsA

List models available on Surplus with context length and USD price per 1M tokens. Use search to filter by id or name.

chatA

Send a prompt to a model on Surplus and return its reply. Billed to the configured API key. Pass prompt for a single turn, or messages for a full conversation. Call list_models to pick a model id.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 5 tools

Disambiguation5/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues