Fused UDF MCP server

Python-based framework for connecting Claude and other LLMs to executable Python code through User Defined Functions, enabling data scientists to extend their models with custom Python capabilities.
Back to servers
Setup instructions
Provider
Fused Labs, Inc.
Release date
Mar 21, 2025
Language
Python
Stats
26 stars

This MCP server implementation allows Claude to execute Python code directly through HTTP requests, bridging the gap between LLMs and your local data and services. It's built on Fused User Defined Functions (UDFs) to provide a simple yet powerful way to extend Claude's capabilities.

Installation Requirements

Setting Up the Environment

  1. Clone the repository and navigate to the project directory:

    git clone https://github.com/fusedio/fused-mcp.git
    cd fused-mcp/
    
  2. Install UV package manager:

    macOS / Linux:

    curl -LsSf https://astral.sh/uv/install.sh | sh
    

    Windows:

    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
    
  3. Verify the installation:

    uv run main.py -h
    

Getting Started

The easiest way to get started is by following the included notebooks:

  1. First, open and follow fused_mcp_agents.ipynb for basic setup and configuration
  2. Then proceed to create_your_own_agents.ipynb for creating custom agents and functions

Using the MCP Server

Configuring Claude Desktop App

The server generates a configuration file for the Claude Desktop app. If you need to customize the paths, you can modify the configuration in the notebook:

import shutil 

common.generate_local_mcp_config(
    config_path=PATH_TO_CLAUDE_CONFIG,
    agents_list=["get_current_time"],
    repo_path=WORKING_DIR,
    uv_path=shutil.which('uv'),
)

Starting an Agent

To start a specific agent:

uv run main.py --agent get_current_time

Troubleshooting

If you encounter issues with the setup:

  • Verify that running uv run main.py -h shows the help output
  • You might need to provide full paths in the Claude configuration file
  • If Claude doesn't show connected tools, check the MCP documentation for troubleshooting steps

Linux and Non-Desktop App Users

If you're on Linux or cannot use the Claude Desktop app, you can use the included local client:

  1. Create an Anthropic Console Account
  2. Create an Anthropic API Key
  3. Create a .env file with your API key:
    echo "ANTHROPIC_API_KEY=your-key-here" > .env
    
  4. Start the MCP server:
    uv run main.py --agent get_current_time
    
  5. In another terminal, start the local client:
    uv run client.py http://localhost:8080/sse
    

Community Support

Join the Discord server for help and to connect with other users.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "fused-udf" '{"command":"uv","args":["run","main.py","--agent","get_current_time"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "fused-udf": {
            "command": "uv",
            "args": [
                "run",
                "main.py",
                "--agent",
                "get_current_time"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "fused-udf": {
            "command": "uv",
            "args": [
                "run",
                "main.py",
                "--agent",
                "get_current_time"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later