Provides integration with Apache Gravitino, enabling metadata management through Gravitino APIs including catalog/schema/table metadata operations, tag management, and user-role administration.
MCP Server for Apache Gravitino
MCP server providing Gravitino APIs - A FastMCP integration for Apache Gravitino services.
Features
- Seamless integration with FastMCP for Gravitino APIs
- Simplified interface for metadata interaction
- Supports metadata operations for catalogs, schemas, tables, models, users, tags, and user-role management
Installation
This project uses uv as the dependency and virtual environment management tool. Please ensure uv
is installed on your system.
- Clone the repository:
- Navigate into the project directory:
- Create a virtual environment:
- Activate the virtual environment:
- Install dependencies:
Configuration
Common Configuration
Regardless of the Authorization, the following environment variables need to be set:
GRAVITINO_URI
: The base URL of your Gravitino server.GRAVITINO_METALAKE
: The name of the metakube to use.
Authorization
mcp-server-gravitino
supports both token-based and basic authentication methods. These mechanisms allow secure access to MCP tools and prompts and are suitable for integration with external systems.
Token Authentication
Set the following environment variables:
GRAVITINO_JWT_TOKEN
: The JWT token for authentication.
Basic Authentication
Alternatively, you can use basic authentication:
GRAVITINO_USERNAME
: The username for Gravitino authentication.GRAVITINO_PASSWORD
: The corresponding password.
Tool Activation
Tool activation is currently based on method names (e.g., get_list_of_table
). You can specify which tools to activate by setting the optional environment variable GRAVITINO_ACTIVE_TOOLS
. The default value is *
, which activates all tools. If just want to activate get_list_of_roles
tool, you can set the environment variable as follows:
Usage
To launch the Gravitino MCP Server, run the following command:
The meaning of each argument is as follows:
Argument | Description |
---|---|
uv | Launches the UV CLI tool |
--directory /path/to/mcp-gravitino | Specifies the working project directory with pyproject.toml |
run | Indicates that a command will be executed in the managed environment |
--with fastmcp | Adds fastmcp to the runtime environment without altering project deps |
--with httpx | Adds httpx dependency for async HTTP functionality |
--with mcp-server-gravitino | Adds the local module as a runtime dependency |
python -m mcp_server_gravitino.server | Starts the MCP server using the package's entry module |
Goose Client Example
Example configuration to run the server using Goose:
Tool List
mcp-server-gravitino
does not expose all Gravitino APIs, but provides a selected set of optimized tools:
Table Tools
get_list_of_catalogs
: Retrieve a list of catalogsget_list_of_schemas
: Retrieve a list of schemasget_list_of_tables
: Retrieve a paginated list of tablesget_table_by_fqn
: Fetch detailed information for a specific tableget_table_columns_by_fqn
: Retrieve column information for a table
Tag Tools
get_list_of_tags
: Retrieve all tagsassociate_tag_to_entity
: Attach a tag to a table or columnlist_objects_by_tag
: List objects associated with a specific tag
User Role Tools
get_list_of_roles
: Retrieve all rolesget_list_of_users
: Retrieve all usersgrant_role_to_user
: Assign a role to a userrevoke_role_from_user
: Revoke a user's role
Model Tools
get_list_of_models
: Retrieve a list of modelsget_list_of_model_versions_by_fqn
: Get versions of a model by fully qualified name
Each tool is designed to return concise and relevant metadata to stay within LLM token limits while maintaining semantic integrity.
License
This project is licensed under the Apache License Version 2.0.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A FastMCP integration server that provides access to Apache Gravitino metadata management APIs, allowing users to manage catalog/schema/table metadata, tags, and user-role information through a structured interface.
Related MCP Servers
- -securityAlicense-qualityFastMCP is a comprehensive MCP server allowing secure and standardized data and functionality exposure to LLM applications, offering resources, tools, and prompt management for efficient LLM interactions.Last updated -3MIT License
- -securityAlicense-qualityA high-performance FastAPI server supporting Model Context Protocol (MCP) for seamless integration with Large Language Models, featuring REST, GraphQL, and WebSocket APIs, along with real-time monitoring and vector search capabilities.Last updated -9MIT License
- AsecurityAlicenseAqualityThe server integrates with the free IMF data API and provides various features to facilitate data retrieval and analysis. The server is built using the FastMCP framework and offers the following functionalities:Last updated -103Apache 2.0
- -securityFlicense-qualityA FastMCP-based server that enables interaction with MySQL databases, supporting client-server communication for querying and analyzing MySQL data.Last updated -