Skip to main content
Glama
GPTProto MCP

GPTProto MCP

Official
by gptproto-ai

GPTProto MCP

An open-source local MCP server that gives compatible AI hosts tools for GPTProto model discovery, live pricing, documented native API requests, custom generation, and asynchronous task polling. It connects directly to GPTProto's public APIs, contains no private service code, and embeds no model catalog.

Its public API behavior mirrors GPTProto CLI: the same method, path, native JSON, multipart fields, headers, query parameters, provider/model normalization, result extraction, contract-review gate, and asynchronous task semantics are exposed as MCP tool inputs. The MCP does not execute or depend on the CLI package.

AI host -> GPTProto MCP -> GPTProto public API

Prerequisites

Never paste a real API key into an AI chat. Configure the MCP in your own terminal. Store it in the MCP's protected configuration file using hidden terminal input, so the value is not written into shell history:

mkdir -p ~/.config/gptproto-mcp
chmod 700 ~/.config/gptproto-mcp
printf 'GPTProto API Key: '
IFS= read -r -s GPTPROTO_MCP_KEY
printf '\n'
printf '%s\n' "$GPTPROTO_MCP_KEY" > ~/.config/gptproto-mcp/key
unset GPTPROTO_MCP_KEY
chmod 600 ~/.config/gptproto-mcp/key

Managed environments may instead inject GPTPROTO_API_KEY directly into the MCP process without storing it in a chat or checked-in configuration file.

The default API origin is https://gptproto.com. A managed environment may set GPTPROTO_API_BASE_URL, or store a custom origin in ~/.config/gptproto-mcp/base-url.

Related MCP server: McpHub

Install from GitHub

The repository includes the reviewed build output so installation from GitHub does not depend on development-only compiler packages. You can verify the server locally with:

npm install -g https://github.com/gptproto-ai/gptproto-mcp/archive/refs/heads/main.tar.gz
gptproto-mcp

The second command starts a stdio MCP server and waits for an MCP host. It is normal for it to print nothing when launched by itself. Press Ctrl+C to stop it. For a one-off run without a global installation, use:

npx --yes --package=github:gptproto-ai/gptproto-mcp gptproto-mcp

Configure an MCP host

{
  "mcpServers": {
    "gptproto": {
      "command": "npx",
      "args": [
        "--yes",
        "--package=github:gptproto-ai/gptproto-mcp",
        "gptproto-mcp"
      ]
    }
  }
}

This is a local stdio MCP server for hosts such as Codex, Claude Desktop, Claude Code, Cursor, and VS Code. Cloud-only chat products that cannot launch a local process need a separately deployed Streamable HTTP MCP service and per-user authentication.

Tools

Tool

Purpose

gptproto_status

Check configuration without exposing the API key

gptproto_models_list

List live models by broad capability

gptproto_model_describe

Read one model's live paths, native parameters, enums, and polling contract

gptproto_pricing

Query one model, search the full public price catalog, or sort a capability by starting price

gptproto_request

Call a documented official-compatible or GPTProto route

gptproto_custom_create

Submit GPTProto image, video, audio, 3D, or utility tasks

gptproto_tasks_list

Recover recent local asynchronous task IDs after an interrupted call

gptproto_task_get

Read an existing task

gptproto_task_wait

Poll an existing task without resubmitting it

The first release exposes the current GPTProto public API capabilities:

Capability

MCP tool

Configuration check

gptproto_status

Model list

gptproto_models_list

Model parameters and interface description

gptproto_model_describe

Live pricing

gptproto_pricing

Native documented request

gptproto_request

Custom task creation

gptproto_custom_create

Task recovery, query, and polling

gptproto_tasks_list, gptproto_task_get, gptproto_task_wait

Credential writes remain local terminal operations; MCP tools never accept or return an API key and never update installed software.

The intended workflow is:

models_list -> pricing (when cost matters) -> model_describe
            -> request/custom_create
            -> MCP saves task_id, polls internally, returns final result

gptproto_request is the MCP equivalent of gptproto request. Pass the native request object as body, multipart values as form and files, and any documented headers or query values unchanged. Repeated form and query values can be passed as string arrays. Official-compatible model fields lose the provider prefix; GPTProto custom routes retain provider/model, exactly as in the CLI.

Normal output also follows the CLI: text interfaces return extracted text, media interfaces return final URLs, audio or image binary responses use native MCP content blocks, and other interfaces return their original JSON. Set output_json: true to bypass extraction. When stream: true, the MCP consumes the native SSE response and returns the assembled final text because an MCP tool call has one final result rather than terminal-style token output.

For asynchronous creation, the MCP saves the returned task_id locally before it starts polling. The MCP then owns the polling loop for up to 600 seconds and returns the final extracted text or media URLs; neither the user nor the AI host has to issue repeated status checks. The final structured result also includes the exact task_id. When the MCP host requests standard progress notifications, the server sends the task ID and status on every poll; compatible hosts can use those heartbeats to keep a long-running tool call alive.

The default polling cadence becomes faster as the task ages: every 10 seconds for the first minute, every 8 seconds from one to three minutes, and every 5 seconds after three minutes until the 600-second limit. A terminal result is returned immediately after the poll that observes it. Progress notifications follow the same cadence, avoiding noisy two-second status updates.

If the creation response is interrupted before the host receives the ID, gptproto_tasks_list can recover recent tasks by model, resource, label, time, and status. The protected local registry is ~/.config/gptproto-mcp/tasks.json; it stores no API key, prompt, complete request body, or uploaded file content. Because standard MCP calls do not carry a portable conversation ID, this registry is a recovery mechanism rather than a guaranteed conversation-to-task mapping. Never resubmit a generation merely because the current conversation lost the ID.

If an MCP host disconnects before the automatic wait returns, the task ID and latest observed status remain in the local registry. gptproto_task_get performs one recovery check, while gptproto_task_wait resumes MCP-owned polling for up to 600 seconds. Neither recovery tool resubmits the billable generation.

The default timeout for each outbound GPTProto HTTP request is 600 seconds. GPTPROTO_TIMEOUT_MS can be set by managed deployments when a different value is required.

Pricing is read at call time from GPTProto's public model catalog. It is not bundled into the MCP package, so price changes do not require an MCP update. Use the pricing tool's mode field when a broad capability is not specific enough, for example text-to-image, image-to-video, or image-edit.

Model pricing is selection metadata. The MCP still calls gptproto_model_describe before a generation because catalog presence does not guarantee route compatibility or account channel availability. Prices with different billing units are not directly comparable.

Safety boundaries

  • API keys are read from MCP-specific configuration and are never returned by an MCP tool.

  • Custom API origins are not returned by status or error tools.

  • Requests are limited to relative routes in the public MCP route manifest; arbitrary origins and unlisted routes are rejected.

  • Polling URLs must remain on the configured GPTProto origin.

  • Generation can incur charges. Agents are instructed not to retry a failed generation or switch models without user approval.

  • Asynchronous task IDs are persisted before automatic polling. Task recovery metadata is kept in a mode-600 local file and excludes prompts and complete request bodies.

  • Local file uploads are disabled by default. The user must both select the file explicitly and enable GPTPROTO_MCP_ALLOW_FILE_UPLOADS=true for the MCP process.

  • Original provider JSON is opt-in through output_json; normal results return extracted text or media URLs.

Development

npm install
npm test
npm pack --dry-run

Available Tools

9 tools
gptproto_custom_createCreate a GPTProto custom generation taskC

Submit an existing GPTProto custom image, video, audio, lip-sync, 3D, or image-edit request using its documented native body.

Inputs: body (required), resource (required), label, output_json.

gptproto_model_describeDescribe a GPTProto modelA
Read-onlyIdempotent

Return a model's live methods, paths, native parameters, enums, response type, and asynchronous polling contract.

Inputs: model (required).

gptproto_models_listList GPTProto modelsA
Read-onlyIdempotent

List live GPTProto models, optionally filtered by one broad capability. Use before choosing a model.

Inputs: capability.

gptproto_pricingQuery live GPTProto model pricingA
Read-onlyIdempotent

Read GPTProto's live public price catalog. Query one exact provider/model, search all models, or filter a capability and sort by its starting price.

Inputs: mode, sort, limit, model, +3 more.

gptproto_requestCall a documented GPTProto APIA

MCP equivalent of gptproto request: call a relative method/path published by gptproto_model_describe with the same native JSON, multipart, header, and query fields. Official-compatible model fields have the provider prefix removed automatically.

Inputs: path (required), method (required), body, form, +7 more.

gptproto_statusGPTProto configuration statusA
Read-onlyIdempotent

Check whether the MCP uses the default API origin, whether an API key exists, and whether file uploads are enabled. Never returns the key or a custom origin.

Inputs: no named parameters.

gptproto_task_getGet a GPTProto taskA
Read-onlyIdempotent

Perform exactly one status query for a saved task after an interrupted automatic wait. It never resubmits or internally loops.

Inputs: task_id (required), path, video, output_json.

gptproto_tasks_listList recoverable GPTProto tasksA
Read-onlyIdempotent

List recent asynchronous tasks saved locally, including their IDs, model, type, time, state, and completed result URLs. Use this after an interrupted tool call or in a new conversation before creating another task.

Inputs: limit, model, status, resource.

gptproto_task_waitWait for a GPTProto taskA
Read-onlyIdempotent

Resume MCP-owned polling for an existing known task after an interrupted creation call. It never resubmits and is capped at 600 seconds.

Inputs: task_id (required), path, video, interval_ms, +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 9 tools

    Disambiguation4/5

    Most tools are clearly distinct, but task_get and task_wait both handle interrupted operations and could be confused at a glance. custom_create and request also overlap in submitting native API bodies, though descriptions clarify the specific use case.

    Naming Consistency4/5

    All tools share the gptproto_ prefix, which is consistent, but the remaining pattern mixes noun-only names (status, pricing, request) with noun_action names (models_list, model_describe, task_get). Singular/plural usage is inconsistent (models_list vs task_get vs tasks_list).

    Tool Count5/5

    Nine tools is well-scoped for an API client covering status, models, pricing, request execution, and task management. Each tool has a clear role and none feel redundant.

    Completeness4/5

    The tool surface covers the core lifecycle of discovering models, pricing, making requests, and managing async tasks. Minor gaps exist, such as no explicit task cancellation or file upload tool, despite status checking upload capability.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI tools to uniformly discover, inspect, and call tools, prompts, and resources from multiple upstream MCP servers through a small set of fixed MCP tools, over stdio or HTTP.
      2
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables MCP-compatible applications to manage and use local or cloud-hosted models, including listing, pulling, generating, chatting, embeddings, and web search/fetch through a unified tool interface.
      817 npm
      AGPL 3.0