-
Notifications
You must be signed in to change notification settings - Fork 384
Open
Description
Hey LangChain team! The MCP adapters are great for connecting LangChain agents to MCP tools.
We built Agent Bazaar β a billing/metering proxy for MCP tool servers. One API key gives agents access to a marketplace of metered tools.
What this could add to langchain-mcp-adapters:
- Billing-aware tool discovery (agents see cost before calling)
- Per-call metering with signed receipts
- Budget-aware tool selection (agent can check balance, compare tool costs)
- Usage tracking across agent runs
Integration idea:
A BazaarToolkit that wraps the MCP adapter with billing context β tools become LangChain StructuredTool instances with cost metadata in the description.
from langchain_mcp import BazaarToolkit
toolkit = BazaarToolkit(api_key="bz_your_key")
tools = toolkit.get_tools() # Each tool includes pricing in descriptionWhat's live:
- SDK:
npm install @forthebots/bazaar-sdk - Open billing spec (MIT): noui.bot/specs/mcp-billing-v1
- 10 tools from 3 providers, sub-cent metering
Happy to build a working example or PR if there's interest.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels