Polar MCP by usefulapi for LangChain
io.usefulapi/polar-sh
Products, customers, orders, subscriptions, benefits, revenue metrics and refunds.
client:LangChain
transport:streamable-http
tools:26
Install Polar MCP by usefulapi in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"polar-sh": {
"transport": "streamable_http",
"url": "https://polar-sh.usefulapi.io/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
- polar_list_organizations
- polar_list_products
- polar_get_product
- polar_list_customers
- polar_get_customer
- polar_get_customer_state
- polar_get_customer_state_by_external_id
- polar_list_orders
- polar_get_order
- polar_list_subscriptions
- polar_get_subscription
- polar_get_metrics
- polar_list_benefits
- polar_list_benefit_grants
- polar_list_discounts
- polar_list_refunds
- polar_list_license_keys
- polar_list_meters
- polar_get_meter_quantities
- polar_list_events
- polar_list_webhook_deliveries
- polar_list_webhook_endpoints
- polar_redeliver_webhook_event
- polar_create_refund