Leat MCP by usefulapi for LangChain
io.usefulapi/piggy
Read contacts, points, orders and rewards; add or reverse points in Leat.
client:LangChain
transport:streamable-http
tools:15
Install Leat MCP by usefulapi in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"piggy": {
"transport": "streamable_http",
"url": "https://piggy.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
- piggy_list_contacts
- piggy_find_contact
- piggy_get_contact
- piggy_get_contact_identifiers
- piggy_get_credit_balance
- piggy_get_prepaid_balance
- piggy_get_contact_tier
- piggy_list_loyalty_transactions
- piggy_list_orders
- piggy_find_order
- piggy_get_order
- piggy_get_direct_points_transaction
- piggy_create_contact
- piggy_add_direct_points
- piggy_reverse_direct_points