The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to large language models (LLMs). Think of MCP like a USB-C port for AI applications - just as USB-C provides a standardized way to connect your devices to various peripherals, MCP provides a standardized way to connect AI models to different data sources and tools.MCP helps you build agents and complex workflows on top of LLMs by providing:
A standardized way to connect AI models to data sources and tools
The flexibility to switch between LLM providers and vendors
Best practices for securing your data within your infrastructure
import { InfactoryMCP } from '@infactory/infactory-mcp';// Initialize the MCP clientconst mcp = new InfactoryMCP({ apiKey: 'your-api-key'});// Use MCP to provide context to an LLMconst response = await mcp.sendMessage({ content: "What insights can you provide from my sales data?", context: { dataSources: ["sales_q1_2025"] }});