mockanything for LangChain
io.github.shreyassaw5394/mockanything
Local, stateful twins of any API (Stripe, Twilio, any OpenAPI spec) for agents. No keys, no bill.
client:LangChain
transport:stdio
runtime:npm
Install mockanything in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"mockanything": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@shipatmidnight/mockanything"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs