Skip to main content

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.

Metadata

Release files for mcp-server-gravitino 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-gravitino 0.1.0
File Size Uploaded
mcp_server_gravitino-0.1.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-gravitino 0.1.0
File Interpreter ABI Platform
mcp_server_gravitino-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.1 kB

Release files / mcp_server_gravitino-0.1.0.tar.gz

Download URL mcp_server_gravitino-0.1.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1c5716fe78824aa58cff4f0ed3beb60d5f2916fb00742d6f3a05e8e1c31868ef
BLAKE2b-256 checksum
How to use checksums
4566202fffaacf77cdd67809949e86245c237429a0bb51a0f46b7ca8f4b79383
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.12

Release files / mcp_server_gravitino-0.1.0-py3-none-any.whl

Download URL mcp_server_gravitino-0.1.0-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e586371477ddca98f0062e3463935f0c706aafb50a43807c9a8440bbcc4ea2f5
BLAKE2b-256 checksum
How to use checksums
e020c0a6a78aaf78a0299d63e167e652e6b528107fb70e820ba19042b14d8007
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page