Skip to main content
Glama

Hubris MCP

npm

Model Context Protocol server for Hubris — an OpenAI-compatible LLM gateway with billing in rubles. Connect Claude Desktop, Claude Code, Cline, Cursor or any other MCP client to a single hosted server and get access to the model catalog, account balance and chat completions.

There are two ways in: connect your client straight to the hosted endpoint, or run the stdio server in this repository, which declares the same tools locally and forwards calls to that endpoint. The second is what you want for clients that speak stdio only, and for sandboxes that build from a Dockerfile.

Listing the tools needs no credential; only calling one does.

Tools

Tool

Description

models_list

Full catalog of active models, cursor-paginated.

models_search

Filter by capability (vision / reasoning / tools / web_search / audio_in / audio_out / image_gen / transcription), price, context length.

models_get_pricing

Pricing for a specific model, in rubles.

balance_get

Current account balance.

chat_complete

LLM chat request — full parity with POST /v1/chat/completions.

Related MCP server: 1C Buddy

Resources

URI

Content

hubris://catalog/models

Full model catalog as a single JSON document.

hubris://docs/quickstart

Quickstart page.

Prompts

  • compare-models {task} — ready-made prompt for comparing models for a given task.

Run locally (stdio)

npm install && npm run build
HUBRIS_API_KEY=sk-gw-... node dist/index.js

Or with Docker:

docker build -t hubris-mcp .
docker run -i --rm -e HUBRIS_API_KEY=sk-gw-... hubris-mcp

In an MCP client config:

{
  "mcpServers": {
    "hubris": {
      "command": "node",
      "args": ["/path/to/hubris-mcp/dist/index.js"],
      "env": { "HUBRIS_API_KEY": "sk-gw-..." }
    }
  }
}

HUBRIS_MCP_URL overrides the endpoint if you need to point it elsewhere.

Connect

Claude Code

claude mcp add --transport http hubris https://api.hubris.pw/mcp \
  --header "Authorization: Bearer sk-gw-..."

Claude Desktop

Claude Desktop only speaks stdio, so remote HTTP servers go through the mcp-remote shim. Add to claude_desktop_config.json:

{
  "mcpServers": {
    "hubris": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.hubris.pw/mcp",
        "--transport",
        "http-only",
        "--header",
        "Authorization:${AUTH_TOKEN}"
      ],
      "env": {
        "AUTH_TOKEN": "Bearer sk-gw-..."
      }
    }
  }
}

Cline / Cursor / other clients

Any MCP client with Streamable HTTP transport support:

Field

Value

Transport

Streamable HTTP

URL

https://api.hubris.pw/mcp

Auth header

Authorization: Bearer sk-gw-...

Full connection guide (with client-specific caveats): hubris.pw/docs/integrations/mcp.

Security

The Bearer key grants access to your account balance. We recommend creating a dedicated key for MCP at hubris.pw/keys so it can be revoked independently of other integrations.

About Hubris

Hubris is an OpenAI-compatible LLM gateway for the Russian market — one API key, one ruble-denominated balance, 400+ models. hubris.pw

Available Tools

5 tools
balance_getGet account balanceA
Read-onlyIdempotent
Inspect

Current balance of the Hubris account the API key belongs to, in rubles.

Worth checking before a long or expensive run: requests are refused once the balance is spent. The balance can go slightly negative — one operation is allowed to overdraw it, and the next one is refused.

Two representations of the same number come back. Use balanceKopecks for arithmetic and comparisons — it is an exact integer string. Use balanceRub for display.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
balanceRubYesBalance in rubles as a decimal string, e.g. "1240.55". Negative when the account is overdrawn.
balanceKopecksYesThe same balance in kopecks as an integer string. Use this one for arithmetic: it is exact, while the ruble string is for display.

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (read-only, idempotent), the description adds behavioral context: requests are refused when balance is spent, and the account can go slightly negative. This goes beyond the annotation hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured, with two clear paragraphs. It avoids unnecessary details and delivers the essential information efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description explains the output representations (balanceKopecks for arithmetic, balanceRub for display) and the behavior regarding balance depletion, making it complete for a simple no-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has no parameters, and schema coverage is 100% (empty). The description does not add parameter-related information, but since there are none, the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves the current account balance, using the verb 'get' and specifying the resource. It distinguishes itself from siblings by the explicit focus on balance, though not directly comparing to others.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit guidance on when to use the tool: 'Worth checking before a long or expensive run'. Also explains the behavior of balance going negative, which informs usage decisions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

chat_completeChat completionAInspect

Run a chat completion on any model in the Hubris catalogue and get the answer back. Full parity with POST /v1/chat/completions — same request shape, same response shape, including tool calls, structured output and reasoning. Streaming is not available here: MCP tool calls are synchronous, and stream is ignored if you pass it.

This is how you reach a model you cannot reach otherwise — pick an id with models_search, then call it here. Useful for delegating a subtask to a cheaper or a stronger model than the one you are running on.

The call spends real money from the account balance: it is billed per token at the catalogue price, in rubles. balance_get shows what is left.

ParametersJSON Schema
NameRequiredDescriptionDefault
seedNoBest-effort determinism. Not every model honours it.
stopNoUp to four strings that cut the answer short.
modelYesModel id from the catalogue, vendor included and matched exactly, e.g. "anthropic/claude-sonnet-5". Short names and names with a trailing date are rejected. Use models_search to find one.
toolsNoFunction-calling tools, OpenAI shape. Model must have the "tools" capability.
messagesYesConversation so far, oldest first.
reasoningNoExtended thinking on models with the "reasoning" capability: {effort:"low"|"medium"|"high"}, {max_tokens:N}, or {enabled:false} to turn it off.
max_tokensNoCap on the length of the answer, in tokens.
web_searchNoEnables built-in web search on models whose capabilities include "web_search".
temperatureNoSampling temperature, 0–2. Some newer models reject it; leave it out unless you need it.
tool_choiceNo"auto", "none", "required", or a specific function to force.
response_formatNo{type:"json_object"} or {type:"json_schema", json_schema:{…}} to constrain the answer to JSON.

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations indicate a non-read-only, non-idempotent, non-destructive operation, and the description adds important behavioral context: it spends real money per token in rubles, is synchronous, and ignores streaming. This goes beyond the basic annotation flags and warns the agent about cost and execution semantics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a bit longer than strictly necessary, but every paragraph adds value: parity, streaming limitation, model selection guidance, and cost warning. No redundant filler is present, and the structure is logical.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having no output schema, the description states the response shape matches OpenAI chat completions, including tool calls, structured output, and reasoning. It also covers cost, model lookup via sibling tools, and streaming behavior, giving the agent enough context to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and each parameter has a detailed, actionable description: model must match the catalogue exactly, messages support multimodal parts, tools require the tools capability, temperature has a caveat for newer models, and reasoning/web_search/response_format are scoped to model capabilities. The description also frames parameters through the OpenAI parity statement.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool runs a chat completion against any model in the Hubris catalogue, and distinguishes it from sibling tools by referencing models_search for model discovery and balance_get for cost. It also clarifies the synchronous nature and full parity with the OpenAI chat completions endpoint.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly explains when to use the tool: to reach a model not otherwise reachable, after picking an id via models_search, and for delegating subtasks. It also gives a clear negative constraint by stating streaming is not available and the stream parameter is ignored.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

models_get_pricingGet model pricingA
Read-onlyIdempotent
Inspect

The full price of one model in rubles — the authoritative answer to "what does this cost".

Prefer this over the pricing embedded in models_list and models_search whenever the model is not billed per token. Those two return "0.00" token rates for such models; only this tool returns perUnit, where the real price per image, per second or per thousand characters lives.

Errors with InvalidParams if the model id is unknown or the model is no longer active.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelIdYesExact model id from the catalogue, vendor included, e.g. "openai/gpt-6-astra".

Output Schema

ParametersJSON Schema
NameRequiredDescription
unitYesBilling unit. "token" — priced per token, the two Rub fields below are meaningful. "unit" — priced per image, per minute, per character and so on; token fields are "0.00" and the real price is in models_get_pricing → perUnit. "unknown" — no pricing on record.
isFreeYesTrue only for genuinely free models. Do not infer this from a zero price: models billed per image or per minute also report "0.00" token rates.
perUnitNoPresent only for models not billed per token. This is where their real price lives.
currencyYesAll prices are in rubles.
inputPer1MRubYesPrice of 1M input tokens in rubles, decimal string, e.g. "182.40". "0.00" when unit is not "token".
outputPer1MRubYesPrice of 1M output tokens in rubles, decimal string. "0.00" when unit is not "token".

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate read-only, idempotent, and non-destructive behavior. The description adds value by detailing the return format (perUnit price in rubles) and error behavior (InvalidParams for unknown/inactive model IDs), going beyond what the annotations alone convey. Slightly short of a 5 because it doesn't mention any potential side effects or edge cases beyond errors.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and well-structured. The first sentence delivers the primary purpose, the second provides usage guidance and contrasts with siblings, and the third mentions error behavior. Each sentence earns its place, and the most critical information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the presence of an output schema (not shown but indicated), the description adequately covers when to use the tool, what it returns (perUnit price in rubles), and how errors are handled. It doesn't need to enumerate return fields since the output schema exists, and the description covers all necessary operational context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description for modelId is already thorough: 'Exact model id from the catalogue, vendor included, e.g. "openai/gpt-6-astra"'. The tool description does not add additional parameter semantics beyond implying that the ID must be valid and active (which is inferred from the error behavior). Since schema coverage is 100%, the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'The full price of one model in rubles' and explicitly distinguishes it from siblings by noting that models_list and models_search may return '0.00' for non-token models, while this tool provides the 'perUnit' price. This leaves no ambiguity about what the tool does or how it differs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit guidance on when to use this tool: 'Prefer this over the pricing embedded in models_list and models_search whenever the model is not billed per token.' It also mentions error conditions (InvalidParams for unknown/inactive models) and clarifies the output unit, making the choice and invocation straightforward.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

models_listList modelsA
Read-onlyIdempotent
Inspect

Walk the whole Hubris catalogue page by page, ordered by model id. Returns every active model with its capabilities, context window and ruble price.

Use this when you need the complete catalogue — to cache it, to count models, or to scan for something no filter covers. When you are looking for a model that fits a task, use models_search instead: it filters by capability, price and context server-side and saves you a few hundred rows.

Paging: read nextCursor from the response and pass it back as cursor. When nextCursor is absent you have reached the end. The catalogue holds roughly 550 models, so a full walk is about 11 calls at the default page size.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoModels per page, 1–200. Defaults to 50.
cursorNoThe `nextCursor` value from the previous response. Omit for the first page.

Output Schema

ParametersJSON Schema
NameRequiredDescription
modelsYes
nextCursorNoPass back as `cursor` to fetch the next page. Absent when the last page was returned.

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description goes beyond the annotations by explaining the pagination mechanism: 'Paging: read `nextCursor` from the response and pass it back as `cursor`. When `nextCursor` is absent you have reached the end.' It also provides an estimate of the number of calls needed ('about 11 calls at the default page size'), giving the agent a realistic expectation of the tool's behavior. The annotations already indicate read-only, idempotent, and non-destructive behavior, so no contradiction exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and concise. It starts with the core purpose, then explains when to use it, and finally details the pagination behavior. Each sentence serves a purpose, and there is no redundant or filler content. The structure is logical and easy to follow.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the presence of an output schema, the description does not need to list return fields, but it still mentions the key output attributes (capabilities, context window, price). It covers the pagination behavior, usage context, and the tool's scope. This is sufficient for an agent to understand what the tool does, when to use it, and how it behaves without needing to inspect additional references.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema descriptions fully cover both parameters (limit and cursor), including the default limit and the instruction to omit cursor for the first page. The description adds no additional semantic information about the parameters themselves; it only references the default page size in the context of the number of calls. Since the schema coverage is 100%, the baseline is 3, and the description provides no extra value beyond that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: to walk the entire catalogue page by page, ordered by model id, returning every active model with its capabilities, context window, and price. It also distinguishes itself from sibling tools like models_search (which filters) and models_get_pricing (which gets specific pricing), so an agent can easily differentiate when to use this tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly tells when to use this tool: 'Use this when you need the complete catalogue — to cache it, to count models, or to scan for something no filter covers.' It also provides an alternative: 'When you are looking for a model that fits a task, use models_search instead.' This gives clear, actionable guidance on both when to use and when not to use the tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 5 tool updatesv0.1.0
    • First observedbalance_get
    • First observedchat_complete
    • First observedmodels_get_pricing
    • First observedmodels_list
    • First observedmodels_search

TDQS

A4.4/5.0

Scored across 5 tools

Disambiguation4/5

The only potential overlap is models_search vs models_list, but descriptions clearly separate filtered search from full paginated listing. models_get_pricing, balance_get, and chat_complete each map to distinct operations.

Naming Consistency3/5

Three tools share a models_ prefix, but balance_get and chat_complete break the pattern, and models_get_pricing mixes verb placement. The names are readable but not fully consistent.

Tool Count5/5

Five tools is well within the ideal 3–15 range and each tool earns a place for the catalog, pricing, balance, and chat workflow.

Completeness4/5

The set covers model discovery, pricing, balance checking, and chat completion, which are the core capabilities implied by the server. A dedicated single-model lookup would round it out, but search/list already cover retrieval.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    MCP server providing tools for interacting with 1С:Напарник AI, including asking questions, syntax explanation, code review, and documentation search. Also serves as a web chat interface and OpenAI-compatible API gateway.
    101
    AGPL 3.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server that provides tools to interact with the LiteLLM proxy API, enabling LLM completions, embeddings, image generation, and admin operations.
    7
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    MCP server that interfaces with Gemini and OpenAI CLI tools to enable AI model interactions. It provides a bridge to external AI CLIs with predefined model configurations.
    -