A Model Context Protocol (MCP) server implementation for managing Alibaba Cloud Realtime Compute for Apache Flink resources. This server provides a standardized interface for AI models to interact with Alibaba Cloud Flink services.
To use this server as an MCP client, add the following configuration to your MCP settings file (e.g., cline_mcp_settings.json
):
{
"mcpServers": {
"rtc-mcp-server": {
"command": "java",
"args": [
"-Dtransport.mode=stdio",
"-Dspring.main.web-application-type=none",
"-Dspring.main.banner-mode=off",
"-Dlogging.file.name=/path/to/rtc-mcp-server/mcpserver.log",
"-jar",
"/path/to/rtc-mcp-server/target/rtc-mcp-server-1.0-SNAPSHOT.jar"
],
"env": {
"ALIYUN_ACCESS_KEY_ID": "your-access-key-id",
"ALIYUN_ACCESS_KEY_SECRET": "your-access-key-secret"
},
"disabled": false,
"autoApprove": []
}
}
}
Replace /path/to/rtc-mcp-server
with your actual server path and provide your Alibaba Cloud credentials in the environment variables.
The server provides the following MCP tools:
Job Management
start_job
: Start a deployed Flink jobstop_job
: Stop a running Flink joblist_jobs
: List all jobs in a deploymentdelete_job
: Delete a non-running jobget_job_diagnosis
: Get job diagnosis informationDeployment Management
create_deployment
: Create a new Flink deploymentget_deployment_metrics
: Get deployment metricscreate_savepoint
: Create a savepoint for a jobVariable Management
create_variable
: Create a new variableupdate_variable
: Update an existing variabledelete_variable
: Delete a variablelist_variables
: List variables with paginationWorkspace Management
create_workspace
: Create a new workspaceget_workspace_info
: Get workspace informationlist_workspaces
: List all workspacesCatalog Operations
get_catalogs
: Get catalog informationget_deployment_databases
: Get database informationget_tables
: Get table informationexecute_sql_statement
: Execute SQL statementsmvn clean package
java -jar target/rtc-mcp-server-1.0-SNAPSHOT.jar
For development mode with stdio transport:
java -Dtransport.mode=stdio -Dspring.main.web-application-type=none -jar target/rtc-mcp-server-1.0-SNAPSHOT.jar
The server supports multiple transport modes:
webflux
: Default mode using Spring WebFluxstdio
: Command-line mode for development and testingLogs are configured in application.yml with the following default settings:
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Seamless access to top MCP servers powering the future of AI integration.