How to Use the Normality Test Engine MCP in LangChain
Build statistical validation chains in LangChain. Check data normality before your agent commits to a statistical model.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Normality Test Engine MCP to LangChain
Create your Vinkius account to connect Normality Test Engine to LangChain and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Gatekeep Your Analysis Chains
The `test_normality` tool lets your agent check if a dataset is normally distributed. It gets back hard numbers for skewness and kurtosis—no LLM hallucinations, just a deterministic statistical test. This isn't just a check; it's a branch in your logic. If the data passes, the chain proceeds with a parametric test. If it fails, your LangChain agent can pivot to a non-parametric alternative or halt and flag the data for human review. You're building an agent that won't blindly run the wrong stats.
Trace Every Statistical Check
Every call to `test_normality` from your agent is fully observable in LangSmith. You see the exact input data and the resulting skewness and kurtosis values, logged with latency and token data. This gives you a complete audit trail for your statistical assumptions. When an analysis pipeline produces an unexpected result, you can trace it back to the source. You'll have proof that your agent verified the data's distribution before it proceeded.
A Smarter LangChain MCP Server
This tool is a fundamental building block for any serious data analysis agent. It’s designed to be composed with other tools in your agent's arsenal. The real power comes from chaining it. Your agent can pull data from a database with one tool, validate it with `test_normality` from this MCP server, and then, based on the outcome, pass the data to a plotting tool. It’s how you automate an entire, statistically sound workflow.
Set up Normality Test Engine MCP in LangChain
Prerequisites
- Python 3.10+ installed
-
langchain-mcp-adapters+langgraphpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChainBaseToolobjects. - 2
Connect via HTTP transport
Use
MultiServerMCPClientwith"transport": "http"pointing to your Vinkius endpoint. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Create a ReAct agent
Pass the discovered tools to
create_react_agent()from LangGraph. The agent automatically routes Normality Test Engine tool calls through the MCP protocol. - 4
Run with any LLM
Swap
ChatOpenAIforChatAnthropic,ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
async with MultiServerMCPClient({
"normality-test-engine-mcp": {
"transport": "http",
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
}
}) as client:
tools = client.get_tools()
agent = create_react_agent(
ChatOpenAI(model="gpt-4o"),
tools,
)
result = await agent.ainvoke({
"messages": "List recent Normality Test Engine transactions"
})
print(result["messages"][-1].content) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by simple-statistics. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Normality Test Engine MCP in LangChain
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Normality Test Engine MCP today
We host it, we monitor it, we maintain it. You just paste one token.