Searching for mcp vs function calling usually means you already ship tool-using agents and now hear “just use MCP” in every thread. Short answer—they are complementary, not mutually exclusive. Function calling (tools / tool use) is how a model requests a typed action inside one host session. MCP is how hosts discover and talk to toolservers over a shared protocol so the same capabilities can move across clients. Pick by packaging and reuse needs—not by which buzzword is newer. For build steps see the MCP server tutorial; for transport choice see stdio vs Streamable HTTP; for “should we adopt MCP at all?” see when to use MCP.

01

Independence note

02

What each term means (working definitions)

  • Function calling / tool use: the model returns a structured “call this name with these args” message; thehost application runs the handler and feeds the result back. Names and schemas live next to the chat loop—often in the same process as your agent. Call this the inline tools layer.
  • MCP (Model Context Protocol): a client–server protocol so a host can connect to one or more servers that expose tools, resources, and prompts. The server process (or remote endpoint) owns the handlers; the host owns consent, routing, and model I/O. Call this the served tools layer.

In practice many MCP-backed agents still use function callingunder the hood: the host lists MCP tools, presents them to the model as callable functions, then dispatches invocations to the MCP session. The contrast is packaging and boundary—not “JSON tools vs magic.”

03

Complementary layers, not a forced choice

Treat function calling as the model ↔ host contractfor “I want tool X.” Treat MCP as the host ↔ capability contract for “where does tool X live, how do I discover it, how do I auth and version it across products.” You can:

  • Use only inline tools when one app owns every handler and you will not share them with other hosts.
  • Use MCP servers + host function calling when the same capabilities must plug into Cursor, Claude Desktop, custom agents, or remote gateways without rewriting adapters each time.
  • Mix: keep a few session-local helpers inline (scratchpad, UI actions) while exposing durable integrations (tickets, repos, CRM) as MCP servers.

04

Inline tools vs served tools

Inline function callingMCP-served tools
BoundaryHost process owns handlersSeparate server / remote process
Reuse across hostsRe-implement or share librariesSame server, many MCP clients
DiscoveryHard-coded list in your agentProtocol list/call over session
Transport / opsIn-process callstdio or remote HTTP—see transport note
Auth surfaceApp secrets & sessionPlus server env, tokens, gateway
Best default when…Single product, tight loopShared integrations / multi-host

Resources and prompts on MCP servers add shapes that plain tool arrays rarely cover cleanly—see resources vs tools vs prompts and tool annotations for honesty about side effects.

05

When to use which

  • Prefer inline function calling for product-specific actions, UI-bound commands, or prototypes where a second process would only add latency and deploy complexity.
  • Prefer MCP when you need the same integration in more than one host, when partners should ship capabilities without forking your agent, or when you want stdio/remote packaging and host-managed consent.
  • Prefer neither as ideology: if a plain REST/SDK call with a thin agent wrapper is enough, skip both ceremony—see when to use MCP for the scene-level checklist (API / RAG / don’t).

06

Anti-patterns

  • Rewriting every inline tool as an MCP server “for purity”:local helpers stay local.
  • Assuming MCP removes provider tool limits: the host still bridges model ↔ tools; context and rate limits remain.
  • Shipping remote MCP with no auth: served tools are an open attack surface—ops notes in best practices.
  • Treating blog schema dumps as the protocol: pin your SDK; this page is not a JSON schema mirror.

08

FAQ

Is MCP better than function calling?

Neither is universally better. Function calling is the model-facing action loop; MCP is how many hosts package and share those actions. Choose by reuse and process boundaries.

Do I still need function calling if I use MCP?

Usually yes at the host–model edge. MCP servers expose tools; hosts typically present them to the model as callable tools/functions.

Is this the same as OpenAI tools or Claude tool use?

Those are vendor names for the inline function-calling pattern. MCP is host–server interoperability. You can use both in one stack.

Where should I start building?

Minimal server: MCP server tutorial. Transport: stdio vs Streamable HTTP. Adoption threshold: when to use MCP.

Is this official documentation?

No. Unofficial engineering notes from 墨码 / codemo.fun. Spec text and vendor docs remain authoritative.