Feedback

Basic information

Runtime
python
Category
License
MIT license
Author
rooseveltadvisors
Submitted by
Community
Quality
25
Stars
3

About FastAPI MCP Client

# FastAPI MCP Client\n\nA specialized client library specifically designed to work with [fastapi-mcp](https://github.com/tadata-org/fastapi_mcp) servers that implement the Model Context Protocol (MCP) over Server-Sent Events (SSE). This library provides a seamless way to interact with MCP-enabled FastAPI services.\n\n## Installation\n\n```bash\n# Install with pip\npip install fastapi-mcp-client\n\n# Or with UV\nuv add fastapi-mcp-client\n```\n\n## Quick Start\n\n```python\nimport asyncio\nfrom fastapi_mcp_client import MCPClient\n\nasync def main():\n async with MCPClient(\"http://localh...

FastAPI MCP Client is a MCP client in the Agent Framework category listed in the AddMCP.net directory, published by rooseveltadvisors. Runtime: python. License: MIT license. The repository has 3 GitHub stars. Source code is hosted on github.com.

FastAPI MCP Client config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

FastAPI MCP Client tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is FastAPI MCP Client?

A specialized async client library for interacting with fastapi-mcp servers that implement the Model Context Protocol (MCP) over Server-Sent Events (SSE). It runs in any Python environment and is built for developers integrating with MCP-enabled FastAPI services.

How to use FastAPI MCP Client?

Install via pip install fastapi-mcp-client or uv add fastapi-mcp-client. Connect to an MCP server by creating an MCPClient instance with the server’s base URL, then call operations (e.g., client.call_operation(\"echo\", {\"message\": \"Hello\"})). For streaming, pass stream=True and iterate over events. Session management and message passing are handled automatically.

Key features of FastAPI MCP Client

  • Full MCP protocol implementation for FastAPI-based servers
  • First-class SSE streaming support
  • Fully async‑first design for high performance
  • Seamless session establishment and message handling
  • Comprehensive error handling with fallback mechanisms
  • Complete type annotations for better IDE integration

Use cases of FastAPI MCP Client

  • Call non‑streaming endpoints (e.g., echo, calculate) on MCP servers
  • Consume real‑time streaming data (e.g., generated numbers, search results)
  • Build conversational AI tools that communicate with MCP‑enabled APIs
  • Replace manual HTTP handling with a high‑level, async MCP client

Frequently asked questions

1 What is FastAPI MCP Client used for?

It is a Python client library designed specifically to call operations on MCP servers built with fastapi-mcp. It handles session initialization, message passing, and SSE streaming automatically.

2 How does it differ from generic MCP clients?

FastAPI MCP Client is tailored for servers using the fastapi-mcp extension and communicates over SSE rather than stdio or WebSocket. It offers a concise async interface and built‑in streaming support.

3 What Python versions or runtimes does it support?

The client is Python‑only and requires Python 3.8+ (as inferred from async/await syntax). It works with any environment that supports pip/uv.

4 Is FastAPI MCP Client free to use?

Yes. The project is licensed under the MIT License, so it is free for both personal and commercial use.

5 Are there any known limitations?

The README does not list specific limitations. The client is designed exclusively for fastapi-mcp servers and does not support other MCP transports like WebSocket or stdio.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬