by whataboutyou-ai
Eunomia MCP Server connects Eunomia instruments with Model Context Protocol (MCP) servers to orchestrate data governance policies, such as PII detection and user access control, within the MCP ecosystem.
Eunomia MCP Server is an extension of the Eunomia framework designed to connect Eunomia instruments with Model Context Protocol (MCP) servers. It facilitates the orchestration of data governance policies, such as PII detection and user access control, and seamlessly integrates them with external server processes within the MCP ecosystem.
To use Eunomia MCP Server, you first need to clone the repository:
git clone https://github.com/whataboutyou-ai/eunomia-mcp-server.git
Then, you define your application settings, including the MCP servers to be connected and the Eunomia Orchestra
with its instruments (e.g., PiiInstrument
). An example of defining settings using pydantic_settings
is provided in the project description.
Finally, run the server using uv
:
uv --directory "path/to/server/" run orchestra_server
This command will load settings, launch the server to handle requests, orchestrate external MCP servers, and apply Eunomia instruments to enforce data governance policies.
IdbacInstrument
, PiiInstrument
) to the Orchestra
.Q: Is this MCP server compatible with the latest Eunomia developments?
A: No, this MCP server is deprecated and not compatible with the latest developments of Eunomia. A new MCP integration is currently under development and will be available soon.
Q: Where can I find more detailed usage information and advanced configurations?
A: You can refer to the Eunomia Documentation, Eunomia Repository, and MCP Documentation for further reading.
[!WARNING] This MCP server is deprecated as it is not compatible with the latest developments of Eunomia. A new MCP integration is under development and will be available soon.
Eunomia MCP Server
Open Source Data Governance for LLM-based Applications — with MCP integration
Made with ❤ by the team at What About You.
Read the docs · Join the Discord
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:
git clone https://github.com/whataboutyou-ai/eunomia-mcp-server.git
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.
"""
Example Settings for MCP Orchestra Server
=========================================
This example shows how we can combine Eunomia with a web-browser-mcp-server
(https://github.com/blazickjp/web-browser-mcp-server).
"""
from pydantic_settings import BaseSettings
from pydantic import ConfigDict
from eunomia.orchestra import Orchestra
from eunomia.instruments import IdbacInstrument, PiiInstrument
class Settings(BaseSettings):
"""
Application settings class for MCP orchestra server using pydantic_settings.
Attributes:
APP_NAME (str): Name of the application
APP_VERSION (str): Current version of the application
LOG_LEVEL (str): Logging level (default: "info")
MCP_SERVERS (dict): Servers to be connected
ORCHESTRA (Orchestra): Orchestra class from Eunomia to define data governance policies
"""
APP_NAME: str = "mcp-server_orchestra"
APP_VERSION: str = "0.1.0"
LOG_LEVEL: str = "info"
MCP_SERVERS: dict = {
"web-browser-mcp-server": {
"command": "uv",
"args": [
"tool",
"run",
"web-browser-mcp-server"
],
"env": {
"REQUEST_TIMEOUT": "30"
}
}
}
ORCHESTRA: Orchestra = Orchestra(
instruments=[
PiiInstrument(entities=["EMAIL_ADDRESS", "PERSON"], edit_mode="replace"),
# You can add more instruments here
# e.g., IdbacInstrument(), etc.
]
)
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.For more detailed usage, advanced configuration, and additional instruments, check out the following resources:
Reviews feature coming soon
Stay tuned for community discussions and feedback