π€οΈ Modular MCP Server & Client
This project provides a modular and extensible tool server built on FastMCP. It supports multiple tools organized across files and is compatible with a local or remote client that communicates via the MCP protocol.
π Project Structure
Related MCP server: Math Expression MCP Server
π Getting Started
π§ Requirements
Python 3.10+
uvpackage manager (used to run client/server scripts)MCP-compatible client and server setup
Add Environment Variables
π₯οΈ Run the Server
To start the tool server:
π§βπ» Run the Client
To start the client server:
Replace <Path to server> with the local or remote path to the server script (e.g. server/main.py).
π§© Extending the Server
You can easily extend this server with additional tools. 1. Create a new module in the tools/ directory (e.g., tools/finance_tools.py). 2. Define your functions using the @mcp.tool() decorator. 3. In config.yaml, add your new module to the tools list to register the tools.
Example: