Refunc MCP Server

by refunc

160 downloads Not rated yet View license

About

The Refunc MCP Server integrates Refunc serverless functions as tools in the Model Context Protocol (MCP), allowing you to expose functions as MCP endpoints via Server-Sent Events (SSE). It is designed for developers who want to create MCP-compatible tools from existing Refunc…

Details

License
View license

Explore

- Deployable on Kubernetes with a single manifest file.
- Uses refunc-cli to create and manage functions.
- MCP event spec supports multiple tools per function.
- SSE endpoint follows a predictable URL format.
- Tools can be described inline with JSON Schema parameters.

Deploy all refunc components in namespace refunc-system.

kubectl apply -f https://raw.githubusercontent.com/refunc/mcp-server/refs/heads/main/deploy/play-all-in-one.yaml

Then proxy refunc service to local.

kubectl port-forward svc/aws-api 8000:http --address 0.0.0.0 -n refunc-system
kubectl port-forward svc/mcp-server 8001:http --address 0.0.0.0 -n refunc-system

PS: The data from the demo deployment is not persistent.

Deploy Refunc

Deploy all refunc components in namespace refunc-system.

kubectl apply -f https://raw.githubusercontent.com/refunc/mcp-server/refs/heads/main/deploy/play-all-in-one.yaml

Then proxy refunc service to local.

kubectl port-forward svc/aws-api 8000:http --address 0.0.0.0 -n refunc-system
kubectl port-forward svc/mcp-server 8001:http --address 0.0.0.0 -n refunc-system

PS: The data from the demo deployment is not persistent.

Create Function

Create a Function with refunc-cli.

```
pip install -U refunc-cli
mkdir mcp-demo && cd mcp-demo
rfctl init

Initing function manifest in /path/mcp-demo/lambda.yaml
Name: mcp-demo
Namespace: refunc-system
Select Language:
1 - python
2 - go
Choose from 1, 2 [1]:
Select Runtime:
1 - python3.10
2 - python3.9
3 - python3.8
Choose from 1, 2, 3 [1]:

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.