Skip to content
BENIBIX Learn

SDK MCP Server

AI🧩 Claude Agent SDKCustom Tools

Also known as in-process MCP server, Agent SDK in-process server, Claude Agent SDK SDK MCP Server

An MCP server that runs in your own app. Its tools are plain functions in your code.

Think of it like

It is like a helper at your own desk.

Example

Leo's tools need his app's database pool. An SDK MCP server lets them use it, with no second process to start.

Why it matters

It is the quickest way to give an agent your own tools. There is nothing more to deploy.

Definition

An SDK MCP server is an MCP server that runs inside your own app, made with createSdkMcpServer(). Its tools are plain functions in your code. So they can reach your database and your data with no extra process and no network hop. If a handler throws an error, the server turns it into an error result. Claude reads it, and the loop goes on.

Common mistake

Starting a second server process for tools that only call your own code.

Key takeaways

  1. 1
    Runs in your process. No extra server.
  2. 2
    Tools are functions. In your code.
  3. 3
    Errors become results. The loop goes on.

Compare