What’s MCP all about? Comparing MCP with LLM function calling
The Model Context Protocol (MCP) builds on LLM function calling by moving tool definitions and execution out of individual LLM applications into standalone servers that any MCP-compatible client can discover and invoke. A Home Assistant light-control function is implemented both ways. The first version uses OpenAI tool definitions in JSON, with the app parsing tool_calls and executing them itself. The second is an MCP server built with the TypeScript SDK, a Zod schema and stdio transport, registered in Cursor. The takeaway is that function calling leaves discovery and execution to each app, while MCP standardizes them so tools can be reused across agents like Cursor, Windsurf and Claude Desktop.
Related posts
- You are Doing MCP Wrong: 3 Big Misconceptions
Docker mediumAdeptMCP is a model-facing protocol for LLM tool use and context exchange, not a replacement for REST or gRPC. Tools execute while agents plan, re-plan and evaluate, and MCP also covers resources, prompts and elicitations alongside tools. The recommended architecture treats MCP as the seam between a non-deterministic planning layer and a deterministic execution layer. Concrete patterns include wrapping existing APIs with tools that declare pre/postconditions, keeping the agent control loop outside tools with explicit stop criteria, versioning prompts in a registry, using elicitations for low-confidence branches, and tracing plan → tool → result for replay and audit.
- Tiny Agents: an MCP-powered agent in 50 lines of code
Hugging Face mediumAdeptAn LLM agent built on the Model Context Protocol reduces to a simple while loop around an MCP-aware inference client: connect to MCP servers, convert their tools into OpenAI-style function definitions, pass them to the chat-completion call, execute returned tool calls via the MCP SDK, and feed results back. The TypeScript implementation in huggingface.js extends InferenceClient into an McpClient that holds one session per server and maps tool names to sessions. An Agent class adds a system prompt plus two control-flow tools (task_complete, ask_question). The loop alternates tool calls and results until an exit tool is called, the model answers twice without tools, or a turn limit is reached. The default setup uses Qwen2.5-72B on Nebius, and the model, provider and MCP servers can be swapped.
- LLM chat UIs that support MCP
ClickHouse mediumAdept
LibreChat, AnythingLLM, Open WebUI and Chainlit differ mainly in how they integrate Model Context Protocol (MCP) servers, shown here with hands-on Docker and uv setup steps for each. LibreChat has the most complete native support (stdio, SSE and streamable HTTP, multi-user isolation, YAML config, mcp-proxy for containerized servers) at the cost of setup complexity. AnythingLLM uses a simple JSON config but only exposes MCP tools in @agent mode. Open WebUI needs the mcpo proxy to turn MCP servers into OpenAPI endpoints, and Chainlit is a Python framework with native MCP handlers but no persistent chat history.
- MCP in LangChain: Stateless Protocol, Elicitation, and More!
LangChain mediumAdeptLangChain has moved MCP support into the main package as `langchain.mcp`, rebuilt on FastMCP to match the July 2026 stateless MCP spec, which drops sessions so remote servers no longer need sticky routing or a shared session store. `MultiServerMCPClient` is replaced by a single `MCPAdapter`. FastMCP negotiates per connection between the new protocol and the legacy handshake, and a `ClientGroup` gives each server its own era, auth and server-prefixed tool names. Mid-call elicitation surfaces as a LangGraph interrupt that resumes via a checkpointer, and tool lists can be cached client-side according to server-provided TTLs. The namespace is in beta (Python first, TypeScript to follow) and requires `langchain[mcp]>=1.4.0`.
- Building a CLI Client For Model Context Protocol Servers
Neon mediumAdept
A minimal MCP client can run outside Claude Desktop by implementing four pieces: connecting to the server over stdio, listing tools via tools/list, invoking them via tools/call, and looping tool results back into the Anthropic Messages API. TypeScript code builds this into an interactive CLI with a persisted message history, a chat loop and an entry point that launches the Neon MCP server. The simple version lacks streaming and stops after the first tool call; Neon's published MCP Client CLI handles both.