Apache Flink

v1.0.0Data Science & MLstable

Apache Flink MCP Server is a Model Context Protocol (MCP) implementation that empowers AI assistants and large language models to interact directly with Apache Flink clusters through natural language. It enables intelligent monitoring, management, an

ai-assistantanalysisapache-flinkmcp
Share:
12
Stars
0
Downloads
0
Weekly
0/5

What is Apache Flink?

Apache Flink is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to apache flink mcp server is a model context protocol (mcp) implementation that empowers ai assistants and large language models to interact directly with apache flink clusters through natural language....

Apache Flink MCP Server is a Model Context Protocol (MCP) implementation that empowers AI assistants and large language models to interact directly with Apache Flink clusters through natural language. It enables intelligent monitoring, management, an

This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Apache Flink MCP Server is a Model Context Protocol (MCP) im

Use Cases

Manage Apache Flink clusters through natural language commands.
Monitor and analyze stream processing jobs with AI assistance.
Ashfaqbs

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedApr 25, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx apache-flink

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Apache Flink

The Apache Flink MCP Server is a Python-based MCP implementation that lets AI assistants interact with running Apache Flink clusters through natural language, exposing ten tools covering cluster monitoring, job management, exception tracking, TaskManager resource inspection, and JAR file management. It connects to Flink's REST API, making it possible to check cluster health, debug failing jobs, retrieve metrics, and manage stream processing workloads without navigating the Flink Web UI. The server runs as a streamable HTTP server on port 9090 and is compatible with Continue.dev and other MCP clients.

Prerequisites

  • Python 3.8 or higher
  • A running Apache Flink cluster with the REST API accessible (default port 8081)
  • An MCP-compatible client such as Claude Desktop or Continue.dev
  • Network access from the MCP server host to the Flink JobManager REST endpoint
1

Clone the repository

Clone the apache-flink-mcp-server repository to your local machine.

git clone https://github.com/Ashfaqbs/apache-flink-mcp-server.git
cd apache-flink-mcp-server
2

Install Python dependencies

Install the required Python packages. The server uses the MCP Python SDK and HTTP client libraries.

pip install -r requirements.txt
3

Configure the Flink REST API connection

Initialize the connection to your Flink cluster by calling the initialize_flink_connection tool with your Flink REST API URL when the server starts, or set it in the server configuration.

4

Start the MCP server

Run the MCP server which exposes tools on a streamable HTTP endpoint at port 9090.

python mcp_server.py
5

Configure your MCP client

Add the Flink MCP server to your client configuration. For Continue.dev, create a Flink-mcp-server.yaml config file. For Claude Desktop, add an mcpServers entry.

6

Enable debug logging if needed

Set the LOG_LEVEL environment variable to DEBUG for detailed request/response logging when troubleshooting connection issues.

export LOG_LEVEL=DEBUG
python mcp_server.py

Apache Flink Examples

Client configuration

Continue.dev YAML configuration to connect to the locally running Apache Flink MCP server.

{
  "mcpServers": {
    "apache-flink": {
      "command": "python",
      "args": ["/path/to/apache-flink-mcp-server/mcp_server.py"],
      "env": {
        "LOG_LEVEL": "INFO"
      }
    }
  }
}

Prompts to try

Natural language prompts for interacting with your Flink cluster through the MCP server.

- "What's the current status of my Flink cluster?"
- "List all running Flink jobs and their durations"
- "My job abc123 is failing — show me the exceptions"
- "What metrics are available for job def456?"
- "How are my TaskManager resources being utilized?"
- "List all uploaded JAR files in the cluster"

Troubleshooting Apache Flink

Connection failed to Flink REST API

Verify the Flink JobManager is running and the REST API is accessible at the expected URL (default http://localhost:8081). Check network connectivity and firewall rules between the MCP server host and the Flink cluster.

initialize_flink_connection must be called before using other tools

The server requires an explicit connection initialization. Call the initialize_flink_connection tool first, passing your Flink REST API URL, before attempting to use any other tools like get_cluster_info or list_jobs.

Authentication errors when connecting to a secured Flink cluster

If your Flink cluster uses authentication, verify the REST API security configuration. The server connects to the Flink REST API directly — consult your Flink deployment's security documentation for the correct authentication approach.

Frequently Asked Questions about Apache Flink

What is Apache Flink?

Apache Flink is a Model Context Protocol (MCP) server that apache flink mcp server is a model context protocol (mcp) implementation that empowers ai assistants and large language models to interact directly with apache flink clusters through natural language. it enables intelligent monitoring, management, an It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Apache Flink?

Follow the installation instructions on the Apache Flink GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Apache Flink?

Apache Flink works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Apache Flink free to use?

Yes, Apache Flink is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Data Science & ML MCP Servers

Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "apache-flink": { "command": "npx", "args": ["-y", "apache-flink"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Apache Flink?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides