Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Eunomia is an open-source Python library developed by What About You for data governance in Large Language Model (LLM) applications. It offers precise control over the data entering LLM-based applications by enforcing governance at the token level. Eunomia utilizes a modular set of instruments to address specific challenges, allowing for versatile combinations to support a wide variety of use cases.
Today, the integration of Eunomia with the Model Context Protocol (MCP) has been launched, significantly enhancing the ability to govern unstructured data flowing through MCP servers into enterprise LLM-powered applications.
Server Details
Motivation and Context
Eunomia MCP Server is an extension of the Eunomia framework that connects Eunomia instruments with MCP servers. It provides a simple way to orchestrate data governance policies (like PII detection or user access control) and seamlessly integrate them with external server processes in the MCP ecosystem.
How Has This Been Tested?
Tested with LLM client implementation reported in the modelcontextprotocol docs
Breaking Changes
Types of changes
Checklist
Additional context
Overview
Eunomia MCP Server is an extension of the Eunomia framework that connects Eunomia instruments with MCP servers. It provides a simple way to orchestrate data governance policies (like PII detection or user access control) and seamlessly integrate them with external server processes in the MCP ecosystem.
With Eunomia MCP Server, you can:
Get Started
Installation
Basic Usage
Eunomia MCP Server uses the same "instrument" concept as Eunomia. By defining your set of instruments in an
Orchestra
, you can apply data governance policies to text streams that flow through your MCP-based servers.Below is a simplified example of how to define application settings and run the MCP server with uv.
Running the Server
Once your settings are defined, you can run the MCP Orchestra server by pointing
uv
to the directory containing your server code, for example:uv --directory "path/to/server/" run orchestra_server
This will:
.env
or environment variables.PiiInstrument
) to the incoming text, ensuring data governance policies are automatically enforced.Further Reading
For more detailed usage, advanced configuration, and additional instruments, check out the following resources: