TensorGrid for LangChain
run.tensorgrid/mcp
GPU prices and pay-per-output AI in USDG over x402 on Robinhood Chain, plus a token holder check.
client:LangChain
transport:streamable-http
tools:22
Install TensorGrid in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"mcp": {
"transport": "streamable_http",
"url": "https://mcp.tensorgrid.run/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- get_service_status
- list_gpu_prices
- list_gpu_offers
- list_models
- get_quote
- check_spend_policy
- pay_and_run
- get_quote_status
- commit_quote
- submit_payment
- list_receipts
- check_token_holder
- get_credit_balance
- run_with_credits
- list_my_jobs
- rent_gpu_with_credits
- get_gpu_rental
- keepalive_gpu_rental
- stop_gpu_rental
- verify_payment
- get_job
- get_receipt