FS AI HUB
AI ENGINEERING

What is MCP and Why It Will Standardize Agentic AI

By FS AI Hub
2026-06-26
2 min read

Introduction

If you've built an autonomous AI agent recently, you've likely felt the friction. Every LLM provider—OpenAI, Anthropic, Google—has slightly different tool-calling specifications. If you want your agent to query your local SQLite database, you write a custom integration. If you want it to read a Jira board, you write another one.

The Model Context Protocol (MCP), pioneered by Anthropic, changes everything. It is an open, standardized protocol that acts as a universal bridge between AI models and data sources. If a tool speaks MCP, any MCP-compatible AI agent can immediately discover its capabilities and use it securely.

The Architecture

At its core, MCP operates on a robust three-tier architecture:

  1. MCP Hosts: The application where the LLM runs (e.g., Claude Desktop, a custom LangChain app).
  2. MCP Clients: The software layer inside the Host that manages 1:1 connections with servers.
  3. MCP Servers: Lightweight, self-contained programs that expose specific capabilities (like reading a database).

Because local MCP servers communicate over standard I/O (stdio) and remote servers use HTTP with Server-Sent Events (SSE), the execution sandbox remains completely decoupled from the main LLM process.

Step 1: Setting up an MCP Server

Building an MCP server is surprisingly straightforward. Let's look at how you might expose a local SQLite database to your LLM using the official SDK.

npm install @modelcontextprotocol/sdk sqlite3

Step 2: Implementation (The Code)

You define "Tools" inside your MCP server. When the Host connects, it reads this schema and knows exactly when and how to call your function.

import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";

// Initialize the MCP Server
const server = new Server({
  name: "local-sqlite-server",
  version: "1.0.0"
});

// Define a simple tool that allows the LLM to run read-only queries
server.setRequestHandler(CallToolRequestSchema, async (request) => {
  if (request.params.name === "run_sql") {
    const query = request.params.arguments.query;
    // Execute query securely and return results...
    return {
      content: [{ type: "text", text: "Query executed successfully." }]
    };
  }
});

// Connect via standard input/output
const transport = new StdioServerTransport();
await server.connect(transport);

Step 3: Connecting to the Host

Once your server is running, any MCP-compatible client (like Claude Desktop) can connect to it. You don't write prompts to explain how the database works; the MCP protocol transmits the schema and tool descriptions automatically.

Conclusion & Deployment

MCP is doing for AI agents what USB did for computer peripherals. By adopting this standard, you can write your tool integrations once and reuse them across any framework or model.

Are you planning to build an MCP server for your local data? Let me know in the comments below!