MCP server for Apache Flink SQL Gateway
Project description
flink-mcp — Flink MCP Server
This project provides an MCP server that connects to Apache Flink SQL Gateway.
Prerequisites
-
A running Apache Flink cluster and SQL Gateway
- Start cluster:
./bin/start-cluster.sh - Start gateway:
./bin/sql-gateway.sh start -Dsql-gateway.endpoint.rest.address=localhost - Verify:
curl http://localhost:8083/v1/info
- Start cluster:
-
Configure environment:
- Set
SQL_GATEWAY_API_BASE_URL(defaulthttp://localhost:8083). You can use a.envfile at repo root.
- Set
Run
Install and run via the console script:
pip install -e .
flink-mcp
MCP clients should launch the server over stdio with command: flink-mcp.
Ensure SQL_GATEWAY_API_BASE_URL is set in your environment or .env.
Tools
open_new_session(properties: dict|None)→ returnssessionHandleget_session_handle_config(session_handle: str)execute_query(session_handle: str, query: str, execution_config: dict|None)→ returnsoperationHandleget_operation_status(session_handle: str, operation_handle: str)fetch_result_page(session_handle: str, operation_handle: str, token: int=0)
Notes
- Endpoints target SQL Gateway v3-style paths when available.
- Inspired by: "Hands-on MCP Server Deep Dive: Connecting Flink SQL Gateway to the LLM Ecosystem".
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flink_mcp-0.1.1.tar.gz.
File metadata
- Download URL: flink_mcp-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e192b9fc66650697b9c12072da9a5e57300b94aacff2daed0e606ec4b59ded64
|
|
| MD5 |
781460155dcceb75b334dbfa6fcd2f93
|
|
| BLAKE2b-256 |
d80be104034a5c1020d7ca831921d55537c79f6cad3dd9da379823dfc1b838cc
|
File details
Details for the file flink_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: flink_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bec1606010f4c42007319a59d704605fd89c82e8ace1cb399e4316e03ba21446
|
|
| MD5 |
9c84b8082668ba395024c3e84ec50f62
|
|
| BLAKE2b-256 |
4b205223b1021cdfca786f597ff66aa4a1e1390e612eae1280b8b03fa65a82da
|