---
title: "How to build AI agents with MCP: 12 framework comparison (2025)"
description: "Twelve agent SDKs now support the Model Context Protocol: Claude Agent SDK, OpenAI Agents SDK, Microsoft Agent Framework, Google ADK, CrewAI, Upsonic, mcp-agent, Agno, DSPy, LangChain, LlamaIndex and PydanticAI."
url: "https://swe.quest/articles/how-to-build-ai-agents-with-mcp-12-framework-comparison-2025-21cb351a1cc659e0"
canonical: "https://clickhouse.com/blog/how-to-build-ai-agents-mcp-12-frameworks"
source: "ClickHouse"
published: "2025-10-13"
difficulty: "medium"
kind: "How-to"
reading_minutes: 27
tags: ["ai-agents","llms","python"]
---

# How to build AI agents with MCP: 12 framework comparison (2025)

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2025-10-13, 27 min read, How-to. Original: [https://clickhouse.com/blog/how-to-build-ai-agents-mcp-12-frameworks](https://clickhouse.com/blog/how-to-build-ai-agents-mcp-12-frameworks)

## Summary

Twelve agent SDKs now support the Model Context Protocol: Claude Agent SDK, OpenAI Agents SDK, Microsoft Agent Framework, Google ADK, CrewAI, Upsonic, mcp-agent, Agno, DSPy, LangChain, LlamaIndex and PydanticAI. Each is shown connecting to the ClickHouse MCP Server against a public SQL playground, with Python code for every framework. Differences covered include Claude Agent SDK's required tool allowlist, OpenAI's handoff and streaming patterns, and Microsoft's preview status and Azure ties. Choosing among them comes down to language support, ecosystem and how much abstraction you want.

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)
- [Python](https://swe.quest/tags/python.md) (Languages)

## Prerequisites

- Python async basics ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))
- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Model Context Protocol, ClickHouse MCP Server, Claude Agent SDK, OpenAI Agents SDK, Microsoft Agent Framework, Google Agent Development Kit, CrewAI, LangChain

## Related posts

- [Integrating with ClickHouse MCP](https://swe.quest/articles/integrating-with-clickhouse-mcp-1c5887029a6fb2f3.md): ClickHouse · 2025-06-05 · Medium · 7 min read · AI agents, LLMs, Python, Analytics & OLAP
  The open-source mcp-clickhouse server can be wired into five Python agent frameworks: Agno, DSPy, LangChain, LlamaIndex and PydanticAI.
- [Tiny Agents in Python: a MCP-powered agent in ~70 lines of code](https://swe.quest/articles/tiny-agents-in-python-a-mcp-powered-agent-in-70-lines-of-code-ec89d52eb52d9576.md): Hugging Face · 2025-05-23 · Medium · 16 min read · AI agents, LLMs, Python
  Hugging Face's huggingface\_hub Python SDK now includes an MCP client and a minimal Agent class, letting an LLM pull tools from MCP servers (stdio, SSE or streamable HTTP) and call them during inference.
- [How we built the Microsoft Learn MCP Server](https://swe.quest/articles/how-we-built-the-microsoft-learn-mcp-server-0014fb713a8036c2.md): Engineering@Microsoft · 2026-02-11 · Medium · 5 min read · AI agents, API design, RAG & retrieval, .NET
  Microsoft Learn's MCP Server is a remote Model Context Protocol endpoint, built with the official C# MCP SDK on Azure App Service, that exposes three agent tools (docs search, docs fetch, code sample search) over Streamable HTTP.
- [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.
- [What’s MCP all about? Comparing MCP with LLM function calling](https://swe.quest/articles/what-s-mcp-all-about-comparing-mcp-with-llm-function-calling-fcce1ee01a7d0aed.md): Neon · 2025-03-12 · Medium · 5 min read · AI agents, LLMs, TypeScript
  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.

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)
