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.
Clone the repository and navigate to the project directory:
git clone https://github.com/fusedio/fused-mcp.git
cd fused-mcp/
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"
Verify the installation:
uv run main.py -h
The easiest way to get started is by following the included notebooks:
fused_mcp_agents.ipynb
for basic setup and configurationcreate_your_own_agents.ipynb
for creating custom agents and functionsThe 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'),
)
To start a specific agent:
uv run main.py --agent get_current_time
If you encounter issues with the setup:
uv run main.py -h
shows the help outputIf you're on Linux or cannot use the Claude Desktop app, you can use the included local client:
.env
file with your API key:
echo "ANTHROPIC_API_KEY=your-key-here" > .env
uv run main.py --agent get_current_time
uv run client.py http://localhost:8080/sse
Join the Discord server for help and to connect with other users.
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.
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.
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"
]
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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