swell for LangChain
io.usefulapi/swell
Manage your Swell headless-commerce store — products, orders, customers, and subscriptions.
client:LangChain
transport:streamable-http
tools:16
Install swell in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"swell": {
"transport": "streamable_http",
"url": "https://swell.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
- swell_list_products
- swell_get_product
- swell_list_categories
- swell_list_orders
- swell_get_order
- swell_list_customers
- swell_get_customer
- swell_list_carts
- swell_list_subscriptions
- swell_get_subscription
- swell_list_invoices
- swell_list_coupons
- swell_query
- swell_create_product
- swell_update_product
- swell_update_order