Skip to main content

MCP server providing Gravitino APIs

Project description

MCP server for Apache Gravitino(incubating)

Python Version

MCP server providing Gravitino APIs - A FastMCP integration for Apache Gravitino(incubating) services.

Features

  • Gravitino API integration with FastMCP
  • Easy-to-use interface for metadata management
  • Support for catalog/schema/table metadata, tag, and user-role information

Installation

from configuration

{
    "mcpServers": {
        "Gravitino": {
            "command": "uv",
            "args": [
              "--directory",
              "/Users/user/workspace/mcp-server-gravitino",
                "run",
                "--with",
                "fastmcp",
                "--with",
                "httpx",
                "--with",
                "mcp-server-gravitino",
                "python",
                "-m",
                "mcp_server_gravitino.server"
            ],
            "env": {
                "GRAVITINO_URI": "http://localhost:8090",
                "GRAVITINO_USERNAME": "admin",
                "GRAVITINO_PASSWORD": "admin",
                "GRAVITINO_METALAKE": "metalake_demo"
            }
        }
    }
}

Environment Variables

Authorization

mcp-server-gravitino provides token auth and basic auth:

Token Auth

GRAVITINO_URI=http://localhost:8090
GRAVITINO_JWT_TOKEN=<YOUR GRAVITINO JWT TOKEN>

Basic Auth

GRAVITINO_URI=http://localhost:8090
GRAVITINO_USERNAME=<YOUR GRAVITINO USERNAME>
GRAVITINO_PASSWORD=<YOUR GRAVITINO PASSWORD>

Tool list

mcp-server-gravitino does not provide all APIs available in Gravitino.

Table Tools

  • get_list_of_catalogs: Get a list of catalogs with basic information
  • get_list_of_schemas: Get a list of schemas with basic information
  • get_list_of_tables: Get a paginated list of tables with basic information
  • get_table_by_fqn: Get detailed table information by fully qualified name
  • get_table_columns_by_fqn: Get table columns information by fully qualified name

Tag Tools

  • get_list_of_tags: Get a list of tags with basic information
  • associate_tag_to_table: Associate a tag to a table
  • associate_tag_to_column: Associate a tag to a column
  • list_objects_by_tag: Get a list of objects associated with a tag

User Role Tools

  • get_list_of_roles: Get a list of roles with basic information
  • get_list_of_users: Get a list of users with basic information
  • grant_role_to_user: Grant a role to a user
  • revoke_role_from_user: Revoke a role from a user

Model Tools

  • get_list_of_models: Get a list of models with basic information
  • get_list_of_model_versions_by_fqn: Get a list of model versions by fully qualified name with detailed information

Each tool returns optimized responses with relevant fields to ensure compatibility with model context limits while providing essential metadata information.

License

This project is open source software licensed as Apache License Version 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_gravitino-0.1.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_gravitino-0.1.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_gravitino-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mcp_server_gravitino-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1c5716fe78824aa58cff4f0ed3beb60d5f2916fb00742d6f3a05e8e1c31868ef
MD5 e880fad2186697f28832b651429bdc3b
BLAKE2b-256 4566202fffaacf77cdd67809949e86245c237429a0bb51a0f46b7ca8f4b79383

See more details on using hashes here.

File details

Details for the file mcp_server_gravitino-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_gravitino-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e586371477ddca98f0062e3463935f0c706aafb50a43807c9a8440bbcc4ea2f5
MD5 96490a3b84b9e107843348b99dfe961a
BLAKE2b-256 e020c0a6a78aaf78a0299d63e167e652e6b528107fb70e820ba19042b14d8007

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page