You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation for using FastMCP as an MCP Client #2003
clientRelated to the FastMCP client SDK or client-side functionality.documentationUpdates to docs, examples, or guides. Primary change is documentation-related.triage-martianA label that can be applied by a developer (not an AI Agent) to trigger triage from the martian
Create a dedicated "Use Cases" documentation page highlighting FastMCP Client as a powerful way to integrate MCP tools into existing applications. The existing client documentation is technically comprehensive but doesn't effectively advertise the client's value proposition or provide compelling use case examples.
The documentation should emphasize three primary integration patterns:
AI SDK Integration - Adding MCP tools to AI applications (Anthropic, OpenAI, Gemini)
Testing & Development - Using the client to test MCP servers during development
Agent Framework Integration - Building custom AI agents that leverage MCP tools
Findings
Current State
Existing Client Documentation (docs/clients/):
✅ Comprehensive technical coverage of Client API
✅ Good examples of transports, auth, and operations
✅ Covers multi-server configuration
❌ Missing: Value proposition / "why use this" framing
❌ Missing: Real-world integration examples
❌ Missing: Use case-driven examples
Existing Integration Examples:
AI SDKs: Anthropic (docs/integrations/anthropic.mdx), OpenAI (docs/integrations/openai.mdx), Gemini (docs/integrations/gemini.mdx)
These show how to connect FastMCP servers TO the AI SDKs
❌ Missing reverse: Using FastMCP Client to ADD tools to AI applications
Testing Pattern: Well-documented in AGENTS.md and test files
Shows in-memory transport pattern
✅ Good foundation but buried in developer docs
Gap Analysis:
The client is positioned as a "programmatic interface" but not as a solution for common problems
Integration examples show "MCP server → AI SDK" but not "FastMCP Client → your code"
No dedicated page for "adding MCP to your existing application"
Use cases are scattered across different docs rather than centralized
Related Items Context
Issue #1839 - "MCP Client from multiple in memory servers"
Shows user confusion about client capabilities
Demonstrates need for clearer multi-server examples
Recently added examples for client wrapping patterns
Shows pattern of improving practical examples
Detailed Action Plan
1. Create New Documentation Page: docs/clients/use-cases.mdx
Structure:
---title: FastMCP Client Use Casesdescription: Real-world examples of integrating MCP tools into your applications---## Why Use FastMCP Client?
FastMCP Client provides a programmatic way to add MCP tools to any Python application...
## Use Case 1: Integrating with AI SDKs### Anthropic SDK[Example: Adding weather tools to Claude API calls]### OpenAI SDK[Example: Adding database tools to GPT applications]### LangChain[Example: Creating LangChain tools from MCP servers]## Use Case 2: Building Custom AI Agents[Example: Agent that uses multiple MCP servers][Example: Agentic loop with tool selection]## Use Case 3: Testing MCP Servers[Example: In-memory testing pattern][Example: Integration test setup]## Use Case 4: Chat Applications[Example: Adding tools to custom chat interface][Example: Multi-turn conversations with tool use]
2. Update docs/clients/client.mdx
Add section near the top (after "Creating a Client"):
## Why Use the FastMCP Client?
The FastMCP Client is ideal for:
-**🤖 AI Integration**: Add MCP tools to applications built with Anthropic, OpenAI, or other AI SDKs
-**🧪 Testing**: Test your MCP servers during development with in-memory connections
-**🤝 Agent Frameworks**: Build custom AI agents that leverage multiple MCP servers
-**💬 Chat Apps**: Enhance chat applications with dynamically loaded tools
For detailed examples of each use case, see [Use Cases](/clients/use-cases).
3. Create Example Code Files
examples/client_integrations/anthropic_client.py:
"""Example: Using FastMCP Client to add tools to Anthropic SDK."""
examples/client_integrations/openai_client.py:
"""Example: Using FastMCP Client to add tools to OpenAI SDK."""
examples/client_integrations/custom_agent.py:
"""Example: Building a custom agent with FastMCP Client."""
The FastMCP Client is not just for testing - it's a powerful way to integrate MCP tools into any Python application, including:
- AI applications built with Anthropic, OpenAI, or Gemini SDKs
- Custom AI agent frameworks
- Chat applications requiring dynamic tool loading
When documenting FastMCP Client usage examples, we should include skills as a use case.
Skills client utilities are already documented in the Skills Provider page, but they should also be mentioned/linked from the general client documentation to improve discoverability.
clientRelated to the FastMCP client SDK or client-side functionality.documentationUpdates to docs, examples, or guides. Primary change is documentation-related.triage-martianA label that can be applied by a developer (not an AI Agent) to trigger triage from the martian
Activity
marvin-context-protocol commentedon Oct 4, 2025
Claude finished @strawgate's task —— View job
Investigation Complete
Issue Type: Documentation Enhancement
Recommendation
Create a dedicated "Use Cases" documentation page highlighting FastMCP Client as a powerful way to integrate MCP tools into existing applications. The existing client documentation is technically comprehensive but doesn't effectively advertise the client's value proposition or provide compelling use case examples.
The documentation should emphasize three primary integration patterns:
Findings
Current State
Existing Client Documentation (
docs/clients/):Existing Integration Examples:
docs/integrations/anthropic.mdx), OpenAI (docs/integrations/openai.mdx), Gemini (docs/integrations/gemini.mdx)Gap Analysis:
Related Items Context
Issue #1839 - "MCP Client from multiple in memory servers"
Issue #1878 - "Add more Transformation Examples"
PR #2002 - "Additional Tool Transformation Examples"
Detailed Action Plan
1. Create New Documentation Page:
docs/clients/use-cases.mdxStructure:
2. Update
docs/clients/client.mdxAdd section near the top (after "Creating a Client"):
3. Create Example Code Files
examples/client_integrations/anthropic_client.py:"""Example: Using FastMCP Client to add tools to Anthropic SDK."""examples/client_integrations/openai_client.py:"""Example: Using FastMCP Client to add tools to OpenAI SDK."""examples/client_integrations/custom_agent.py:"""Example: Building a custom agent with FastMCP Client."""4. Update Navigation
In
docs/docs.json, add to Clients section:{ "group": "Essentials", "icon": "cube", "pages": [ "clients/client", "clients/use-cases", // NEW "clients/transports" ] }5. Update README.md
Add to "MCP Clients" section (line ~240):
Related Files
Documentation Files to Create/Modify
docs/clients/use-cases.mdxdocs/clients/client.mdxexamples/client_integrations/anthropic_client.pyexamples/client_integrations/openai_client.pyexamples/client_integrations/custom_agent.pydocs/docs.jsonREADME.mdKey Reference Files
marvin-context-protocol commentedon Feb 9, 2026
When documenting FastMCP Client usage examples, we should include skills as a use case.
Skills client utilities are already documented in the Skills Provider page, but they should also be mentioned/linked from the general client documentation to improve discoverability.
Related: #3120 (closed as duplicate)