MicroFn MCP Server logo

MicroFn MCP Server

by microfnhq

This is a FastMCP server for the MicroFn project. It exposes MCP tools for integration and automation.

View on GitHub

Last updated: N/A

What is MicroFn MCP Server?

The MicroFn MCP Server (Python) is a FastMCP server that provides tools for interacting with the MicroFn platform. It allows users to manage and execute functions, manage secrets, and handle package dependencies within the MicroFn environment through MCP.

How to use MicroFn MCP Server?

To use the server, you need Python 3.8+, FastMCP, and a valid MicroFn API token. Install the dependencies using pip install -r requirements.txt, set the MICROFN_API_TOKEN environment variable, and run the server using python my_server.py or fastmcp run my_server.py:mcp. Integrate the server into your MCP settings by adding the provided JSON configuration.

Key features of MicroFn MCP Server

  • Ping tool for server testing

  • List functions for authenticated user

  • Execute functions in a specified workspace

  • Create, get, update, and delete functions

  • Manage secrets for functions (create, delete, retrieve)

  • Manage npm packages for functions (list, install, update, remove)

  • Update package layer for functions

  • Rename functions

Use cases of MicroFn MCP Server

  • Automating function deployment and execution within MicroFn

  • Integrating MicroFn functions into larger automation workflows

  • Managing secrets and dependencies for MicroFn functions through MCP

  • Creating and managing serverless functions programmatically

  • Building custom tools for interacting with the MicroFn platform

FAQ from MicroFn MCP Server

What is FastMCP?

FastMCP is a framework for building and running MCP (Meta-Control Protocol) servers and clients.

How do I get a MicroFn API token?

You can obtain a MicroFn API token from your MicroFn account settings.

What is the purpose of the ping tool?

The ping tool is a simple way to test if the server is running and responsive.

How do I call another function from within a function?

You can use the @microfn/fn library and the fn.executeFunction method to call another function by its ID.

Why can't I overwrite secrets?

Secrets cannot be overwritten for security reasons. You must delete the existing secret before creating a new one with the same key.