MCP Auto Register

by JoshuaSiraj

9 stars
182 downloads
Not rated
GitHub

About

Automate the registration of functions and classes from a python package into a FastMCP instance.

Details

Author
JoshuaSiraj
GitHub stars
9
Downloads
182
Categories
Other

- Automatically registers functions from a Python package into FastMCP
- Supports registering classes with a user-defined wrapper function
- Allows filtering which functions to include via func_filter
- Integrates directly with the FastMCP server instance
- Simple pip installation and minimal setup code

Install via pip install mcp-auto-register. Then use register_functions_from_package to register specific functions (e.g., from scipy.linalg) or register_classes_from_package with a custom wrapper (e.g., for nba_api.stats.endpoints) by passing an initialized FastMCP instance. The example uses transport="stdio" when running.

MCP Auto Register

This package automates the registration of functions and classes from a python package into a FastMCP instance.

Installation

To install the package, run the following command:

pip install mcp-auto-register

Usage

Register functions from a package:
```python
from mcp_auto_register.register import register_functions_from_package
from mcp.server.fastmcp import FastMCP

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.