---
title: "What’s MCP all about? Comparing MCP with LLM function calling"
description: "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."
url: "https://swe.quest/articles/what-s-mcp-all-about-comparing-mcp-with-llm-function-calling-fcce1ee01a7d0aed"
canonical: "https://neon.com/blog/mcp-vs-llm-function-calling"
source: "Neon"
published: "2025-03-12"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["ai-agents","llms","typescript"]
---

# What’s MCP all about? Comparing MCP with LLM function calling

A post on [Neon](https://swe.quest/sources/neon.md), published 2025-03-12, 5 min read, How-to. Original: [https://neon.com/blog/mcp-vs-llm-function-calling](https://neon.com/blog/mcp-vs-llm-function-calling)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)

## Prerequisites

- LLM function calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- TypeScript/Node.js basics ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))

## Keywords

Model Context Protocol, MCP, OpenAI, Home Assistant, Cursor, Zod, Neon MCP Server

## Related posts

- [You are Doing MCP Wrong: 3 Big Misconceptions](https://swe.quest/articles/you-are-doing-mcp-wrong-3-big-misconceptions-4ed8974e9536c439.md): Docker · 2025-09-03 · Medium · 4 min read · AI agents, LLMs, API design, Observability
  MCP is a model-facing protocol for LLM tool use and context exchange, not a replacement for REST or gRPC.
- [Tiny Agents: an MCP-powered agent in 50 lines of code](https://swe.quest/articles/tiny-agents-an-mcp-powered-agent-in-50-lines-of-code-6bc1baf5d192d871.md): Hugging Face · 2025-04-25 · Medium · 10 min read · AI agents, LLMs, TypeScript
  An 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.
- [LLM chat UIs that support MCP](https://swe.quest/articles/llm-chat-uis-that-support-mcp-f11d29689b539303.md): ClickHouse · 2025-08-12 · Medium · 11 min read · AI agents, LLMs, Developer tools
  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.
- [MCP in LangChain: Stateless Protocol, Elicitation, and More!](https://swe.quest/articles/mcp-in-langchain-stateless-protocol-elicitation-and-more-3388dd33c4368371.md): LangChain · 2026-10-13 · Medium · 5 min read · AI agents, Python, API design, Caching
  LangChain 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.
- [Building a CLI Client For Model Context Protocol Servers](https://swe.quest/articles/building-a-cli-client-for-model-context-protocol-servers-36e215421e2291e4.md): Neon · 2024-12-20 · Medium · 5 min read · AI agents, LLMs, TypeScript, Developer tools
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
