Skip to content

πŸ’° Agent Bazaar integration β€” billing-aware MCP tool discovery for LangChainΒ #429

@TombStoneDash

Description

@TombStoneDash

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 description

What's live:

Happy to build a working example or PR if there's interest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions