The fast, Pythonic way to build MCP servers and clients.
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 more with clean, Pythonic code:
from fastmcp import FastMCPmcp = FastMCP("Demo 🚀") @mcp.tool()def add(a: int, b: int) -> int:
"""Add two numbers"""
return a + b if __name__ == "__main__":
mcp.run()
No comments:
Post a Comment