SamCart MCP by usefulapi for LangChain
io.usefulapi/samcart
Read orders, customers and subscriptions; update order fields, cancel subscriptions in SamCart.
client:LangChain
transport:streamable-http
tools:17
Install SamCart MCP by usefulapi in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"samcart": {
"transport": "streamable_http",
"url": "https://samcart.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
- samcart_list_orders
- samcart_get_order
- samcart_list_customers
- samcart_get_customer
- samcart_list_subscriptions
- samcart_get_subscription
- samcart_get_subscription_history
- samcart_list_products
- samcart_get_product
- samcart_list_charges
- samcart_list_refunds
- samcart_list_prospects
- samcart_get_daily_sales_report
- samcart_get_mrr_report
- samcart_update_order_custom_fields
- samcart_cancel_customer_subscription
- samcart_schedule_customer_cancellation