mcpField
Z
zio-llm-proxy

zio-llm-proxy

Local
github.com/pizzaeueuAI & Agents0Updated 77w ago

About zio-llm-proxy

zio-llm-proxy connects OpenAI chat models to configured local MCP servers through function calling. It is intended for users who need PII checks and a choice to allow or deny sending sensitive data to the model.

Key features

  1. 01OpenAI 函数调用连接 MCP 服务
  2. 02配置多个本地 MCP 服务
  3. 03用正则表达式检查 PII
  4. 04敏感数据由用户决定是否共享

Use cases

  1. 01在聊天中调用文件系统 MCP 服务
  2. 02发送前检查 MCP 返回数据中的敏感信息

MCP support

It connects OpenAI chat models to configured local MCP servers and supplies their available tools to the model through function calling.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Project Description

The proxy enables integration between OpenAI chat models and local MCP servers via Function Calling, allowing custom PII checks for sensitive data verification

Local Run

the Default example will work with the filesystem mcp server and requires it to be pre-installed as docker image. However, one can configure any count of other mcp servers by changing data/McpConfig.conf file

  • Set your openAI api key to the docker compose file, OPEN_AI_API_KEY variable
  • Set an absolute path to the folder shared with the model to the docker compose file, SHARED_DIRECTORY_ABSOLUTE_PATH variable
  • run docker compose up
  • open http://localhost:4173/ and start chat with the model

MCP Proxy MVP Specification

  • Provide the ability to make MCP calls for OpenAI models
  • Run PII checks for the data provided to LLM
  • Ask the user for access to share sensitive information with LLM
  • No authentication mechanism
  • No metrics
  • No strict SLA's

Prerequisites

  • OpenAI chat models with tool‑calling support.

Tradeoffs

  • The app is stateful, with an in-memory persistence layer:
    • In the case of a crash or a restart, users' workflow will be lost
    • The app is not horizontally scalable
  • Supported MCP servers are specified via configuration and stored in-memory.
    • Adding a new MCP server requires a restart.
  • PII detection supports EN language only
  • If sensitive data is found, it will not be provided to users for direct verification.
    Users will only know that the data is sensitive, and they can either grant LLM access or deny it
  • If the data retrieved from the MCP servers is out of the context window, the app will return an error to the user and stop the dialog

Full Sequence Diagram for success path

sequenceDiagram
    autonumber
    participant User
    participant Proxy
    participant LLM
    participant MCP
    participant PII

    User ->> Proxy : Send Message to LLM
    Proxy ->> LLM : Send user message + tool list

    LLM ->> Proxy : Send request to use tools
    Proxy ->> MCP  : Call needed tools
    MCP ->> Proxy : Return results

    Proxy ->> PII: Test data
    PII ->> Proxy: Send test results
    Proxy ->> User: Ask to share data
    User ->> Proxy: Give access 


    Proxy ->> LLM : send message with tool results
    LLM ->> Proxy : send final response
    Proxy ->> User: send final response

In the case if the user doesn't want to share sensitive information, the entire dialog will be stopped:

sequenceDiagram
    autonumber
    participant User
    participant Proxy
    participant LLM
    participant MCP
    participant PII
    Proxy ->> PII: Test data
    PII ->> Proxy: Send test results
    Proxy ->> User: Ask to share data
    User ->> Proxy: Do not give access
    Proxy ->> User: Send acknowledge 
MCP injection
PII module
  • PII check will be based on regex and encapsulated for future extensions
  • PII module just verify if data is sensitive, it will not mask or remove data from the request

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.