Cover image
Try Now
2025-04-14

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

DataContract MCP Server

An MCP server for working with Data Contracts - loading, querying, and analyzing contract definitions.

Installation

Prerequisites

  • Python 3.13 or higher
  • uv (recommended)

Using uv (recommended)

uv pip install -e .

Using pip

pip install -e .

Running the Server

python -m datacontract_mcp.server

Adding to Claude Desktop (for local development)

Add this to your Claude Desktop configuration:

{
  "mcpServers": {
    "datacontract": {
      "command": "uv",
      "args": ["run", "--directory", "<abs_repo_path>", "python", "-c", "from datacontract_mcp import main; main()"],
      "env": {
        "DATACONTRACTS_SOURCE": "<abs_repo_path>/datacontracts"
      }
    }
  }
}

Available Tools

Get Data Contract Schema

Retrieves the official Data Contract JSON schema:

datacontracts_get_schema

List Data Contracts

Lists all available Data Contracts in the datacontracts directory:

datacontracts_list_datacontracts

Get Data Contract

Retrieves the content of a specific Data Contract:

datacontracts_get_datacontract(filename="orders.datacontract.yaml")

Query Data Contract

Executes a read-only SQL query against data defined in a Data Contract:

datacontracts_query_datacontract(
    filename="orders.datacontract.yaml",
    query="SELECT * FROM \"orders\" LIMIT 10"
)

Available Resources

The server provides access to these resources:

  • datacontract-ref://schema - The official Data Contract JSON schema
  • datacontract-ref://example - A concrete example Data Contract from the retail domain

Included Data Contracts

The repository includes example data contracts for:

  • orders.datacontract.yaml - Sample order data with CSV source
  • video_history.datacontract.yaml - Sample video watching history with CSV source

Development

Environment Variables

  • DATACONTRACTS_SOURCE - Directory containing Data Contract files (required)

Testing Locally

DATACONTRACTS_SOURCE=<abs_repo_path>/datacontracts mcp dev -m datacontract_mcp.server

License

MIT

相关推荐

  • av
  • Führen Sie mühelos LLM -Backends, APIs, Frontends und Dienste mit einem Befehl aus.

  • 1Panel-dev
  • 🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.

  • rulego
  • ⛓️Rugele ist ein leichter, leistungsstarker, leistungsstarker, eingebetteter Komponenten-Orchestrierungsregel-Motor-Rahmen für GO.

  • sigoden
  • Erstellen Sie einfach LLM -Tools und -Argarten mit einfachen Bash/JavaScript/Python -Funktionen.

  • hkr04
  • Leichtes C ++ MCP (Modellkontextprotokoll) SDK

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / diskord / telegram / slack 等平台 | 支持 Chatgpt 、 Deepseek 、 Diffy 、 Claude 、 Gemini 、 xai 、 ppio 、 、 ulama 、 lm Studio 、阿里云百炼、火山方舟、 siliconflow 、 qwen 、 mondshot 、 chatglm 、 sillytraven 、 mcp 等 llm 的机器人 / agent | LLM-basierte Instant Messaging Bots-Plattform, unterstützt Zwietracht, Telegramm, Wechat, Lark, Dingtalk, QQ, Slack

  • dmayboroda
  • On-Premise-Konversationslappen mit konfigurierbaren Behältern

  • modelscope
  • Bauen Sie LLM-Multi-Agent-Anwendungen auf einfachere Weise auf.

  • paulwing
  • Ein Test -Repository, das mit MCP -Dienst erstellt wurde

    Reviews

    1 (1)
    Avatar
    user_wBL3R6d2
    2025-04-23

    As a devoted user of datacontract-mcp, I can confidently say this tool is extremely reliable and efficient. It streamlines data handling processes seamlessly and provides exceptional functionality. The author, datacontract, has done a fantastic job with its intuitive design and robust features. Highly recommended for anyone looking to enhance their data management capabilities!