Skip to main content

inferhive-mcp

MCP server for InferHive, the collaborative GPU lending and LLM inference platform by Impulsate. It lets an AI assistant (Claude Code, Claude Desktop or any MCP client) check your balance, list and rent GPUs, reserve them, stop instances, write your kubeconfig and call the OpenAI-compatible LLM gateway, all paid in processing coins (PC), the platform's credits.

It is built on the inferhive SDK and uses the same credentials. Requires Python 3.12+. The portal lives at https://inferhive.impulsate.lat.

Install and log in

pip install inferhive        # the SDK and CLI, used to log in
inferhive login --scope rent # approve in the browser; use --scope read to only look

inferhive login stores a platform key (pak_...) in ~/.config/pcoin/platform_key (mode 0600). The MCP server reads it from there; you do not need to install the server yourself if your client runs it with uvx.

Add it to your client

Claude Code:

claude mcp add inferhive -- uvx inferhive-mcp
# without a browser login: a pak_ key created in the portal (API keys)
claude mcp add inferhive -e INFERHIVE_API_KEY=pak_... -- uvx inferhive-mcp

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "inferhive": { "command": "uvx", "args": ["inferhive-mcp"] }
  }
}

inferhive-mcp speaks stdio. inferhive-mcp --http [--port N] serves streamable HTTP on 127.0.0.1 instead; it has no authentication of its own, so never expose it to a network.

Tools

Tool What it does
get_balance Available, locked and total PC
get_history(limit) Latest ledger movements
list_gpus Nodes with GPU model, VRAM, PC/hour rate and availability
list_offers(gpu, max_price, min_vram, tier) What you can rent right now (GPU nodes and the cpu pool)
list_reservations Your reservations
reserve_gpu(node, start_iso, hours, confirm) confirm=false (default) only shows the cost; confirm=true reserves and locks PC
cancel_reservation(id) Cancels before it starts; refunds everything
release_gpu(id) Releases a running reservation; refunds the unused hours
rent_instance(offer, template, hours, accept_community, image, model, confirm) confirm=false (default) is a preview; confirm=true rents and starts the instance
list_instances Your instances: state, node, template, time left, PC spent and URL
stop_instance(id) Stops an instance (its /scratch is lost); you pay only the time used
get_kubeconfig(path, overwrite) Writes your kubeconfig (0600, default ~/.kube/pcoin-config); never returns its content
llm_chat(prompt, model, max_tokens) Calls the LLM gateway; returns the text, token usage and PC cost
list_llm_keys Your LLM keys (prefix only)

Credentials

Resolved like the SDK, in this order:

  1. Platform key pak_...: INFERHIVE_API_KEY, or ~/.config/pcoin/platform_key from inferhive login. Its scope is set at login: read only looks; rent can reserve, rent and spend PC. If it expired or was revoked, run inferhive login again.
  2. PCOIN_TOKEN: a Cloudflare Access session token (legacy browser session).
  3. PCOIN_API_KEY or ~/.config/pcoin/api_key: an LLM key pck_..., used only by llm_chat. Create it in the portal (LLM API) and save it with inferhive llm keys save.

Create and revoke LLM keys in the portal (LLM API): no platform key can manage keys, so the server only lists them. PCOIN_CONFIG_DIR changes the configuration folder.

Safety

  • Reserving and renting require confirm=true: the assistant should show you the cost and ask before passing it. Without it, nothing is written.
  • cancel_reservation, release_gpu and stop_instance are marked as destructive; configure your client to ask for approval on them.
  • rent_instance refuses community nodes unless accept_community=true: the owner of such a node is root on it and can see what runs there.
  • Secrets are never logged or returned. Rental responses never include the app token (Jupyter, vLLM).
  • For automation, use a pak_ key with the smallest scope (read if it only looks) and an expiry, and revoke it from the portal when done.

Changes

  • 0.2.0: removes create_llm_key and revoke_llm_key, which a platform key can never use; manage LLM keys in the portal. 14 tools.
  • 0.1.0: first release, with 16 tools.

License

MIT. See LICENSE.

Metadata

Release files for inferhive-mcp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inferhive-mcp 0.2.0
File Size Uploaded Provenance Actions
inferhive_mcp-0.2.0.tar.gz 50.8 kB With provenance Details for inferhive_mcp-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inferhive-mcp 0.2.0
File Interpreter ABI Platform Actions
inferhive_mcp-0.2.0-py3-none-any.whl Python 3 none any Details for inferhive_mcp-0.2.0-py3-none-any.whl

Total release size: 59.6 kB

Release files / inferhive_mcp-0.2.0.tar.gz

Download URL inferhive_mcp-0.2.0.tar.gz
Size 50.8 kB
Tags Source
SHA-256 checksum
How to use checksums
142973530ec2c5ac2ba767a053eb9baa10add4d63aa5b3b5ec06980650eef2ce
BLAKE2b-256 checksum
How to use checksums
589a7af8d4a0b814ca6b7e774cf05daa4558f9dcbba787edd19d1194f941dd45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Release files / inferhive_mcp-0.2.0-py3-none-any.whl

Download URL inferhive_mcp-0.2.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cea446ad3201289dcd617d3ed8a7b6e1b1f492205b5ce67978b4420d5c119d7
BLAKE2b-256 checksum
How to use checksums
fcc19a1b720006e810ca526ae0e1ea4faf011f6b87a86a60484c99eec1995987
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

Security for inferhive-mcp 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for inferhive_mcp-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page