mercoa for LangChain
io.usefulapi/mercoa
Query and manage Mercoa AP/AR bill-pay: entities, invoices, transactions and payment methods.
client:LangChain
transport:streamable-http
tools:17
Install mercoa in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"mercoa": {
"transport": "streamable_http",
"url": "https://mercoa.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
- mercoa_find_entities
- mercoa_get_entity
- mercoa_get_entity_events
- mercoa_get_entity_invoice_metrics
- mercoa_list_entity_payment_methods
- mercoa_get_payment_method
- mercoa_list_entity_users
- mercoa_find_invoices
- mercoa_get_invoice
- mercoa_get_invoice_events
- mercoa_find_transactions
- mercoa_get_transaction
- mercoa_get_organization
- mercoa_create_entity
- mercoa_create_invoice
- mercoa_update_invoice
- mercoa_add_invoice_comment