FastMCP v2 ๐
About
FastMCP server containerized for deployment in Google Kubernetes Engine alongside enhanced-mcp-agent
Details
- Transport
- SSE
- License
- Apache-2.0 license
Explore
- Build tools, resources, and prompts with minimal boilerplate
- Client support for stdio, SSE, and in-memory transports
- Server composition and proxy servers for remote MCP servers
- Automatic generation of MCP servers from OpenAPI specs
- Built-in in-memory testing via FastMCPTransport
- Authentication and security features for production deployments
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
FastMCP v2 ๐Command (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
We recommend installing FastMCP with uv:
uv pip install fastmcp
For full installation instructions, including verification, upgrading from the official MCPSDK, and developer setup, see the Installation Guide.
config = {
"mcpServers": {
"weather": {"url": "https://weather-api.example.com/mcp"},
"assistant": {"command": "python", "args": ["./assistant_server.py"]}
}
}
FastMCP provides built-in authentication support to secure both your MCP servers and clients in production environments. Protect your server endpoints from unauthorized access and authenticate your clients against secured MCP servers using industry-standard protocols.
- Server Protection: Secure your FastMCP server endpoints with configurable authentication providers
- Client Authentication: Connect to authenticated MCP servers with automatic credential management
- Production Ready: Support for common authentication patterns used in enterprise environments
Learn more in the Authentication Documentation for servers and clients.
The main way to run a FastMCP server is by calling the run() method on your server instance:
```python
Tools allow LLMs to perform actions by executing your Python functions (sync or async). Ideal for computations, API calls, or side effects (like POST/PUT). FastMCP handles schema generation from type hints and docstrings. Tools can return various types, including text, JSON-serializable objects, and even images using the fastmcp.Image helper.
@mcp.tool()
def multiply(a: float, b: float) -> float:
"""Multiplies two numbers."""
return a * b
Learn more in the Tools Documentation.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"fastmcp v2 \ud83d\ude80": {
"fast-mcp": {
"command": "uv",
"args": [
"pip",
"install",
"fastmcp"
]
}
}
}
}
McpServers
{
"fast-mcp": {
"command": "uv",
"args": [
"pip",
"install",
"fastmcp"
]
}
}
<a href="https://trendshift.io/repositories/13266" target="_blank"></a>
</div>
> [!Note]
> #### Beyond the Protocol
>
> FastMCP is the standard framework for working with the Model Context Protocol. FastMCP 1.0 was incorporated into the official low-level Python SDK, and FastMCP 2.0 (this project) provides a complete toolkit for working with the MCP ecosystem.
>
> FastMCP has a comprehensive set of features that go far beyond the core MCP specification, all in service of providing the simplest path to production. These include client support, server composition, auth, automatic generation from OpenAPI specs, remote server proxying, built-in testing tools, integrations, and more.
>
> Ready to upgrade or get started? Follow the installation instructions, which include specific steps for upgrading from the official MCP SDK.
---
The Model Context Protocol (MCP) is a new, standardized way to provide context and tools to your LLMs, and FastMCP makes building MCP servers and clients simple and intuitive. Create tools, expose resources, define prompts, and connect components with clean, Pythonic code.
```python
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



