Exposes mathematical tools and prompt templates for use by LLM agents.

About

This example demonstrates how to build a tool-augmented AI server in Python. It showcases how to register and expose math tools (add, subtract, multiply) and prompt templates using FastMCP and SSE (Server-Sent Events). The client connects to the server, discovers available tools, and utilizes a LangChain agent to invoke those tools, effectively demonstrating how an LLM agent can leverage external tools to answer questions.

Key Features

  • Implements async programming for client-server communication
  • 0 GitHub stars
  • Exposes tools via Server-Sent Events (SSE)
  • Registers and exposes tools in a Python server
  • Connects to a tool server and discovers available tools
  • Uses an LLM agent to leverage external tools

Use Cases

  • Building tool-augmented AI servers
  • Creating AI agents that can perform calculations
  • Integrating math functions into an LLM workflow