MCPSERV.CLUB
MCP-Mirror

F5 MCP Server

MCP Server

MCP server for managing F5 devices via iControl REST API

Stale(50)
0stars
1views
Updated May 7, 2025

About

A FastMCP-based server that provides CRUD tools for F5 objects such as virtual servers, pools, iRules, and profiles using the iControl REST API. It supports environment-based configuration, modular extensibility, and can run in Docker or WSL.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

F5 MCP Server in Action

The F5 MCP Server is a lightweight, model‑context protocol implementation that bridges AI assistants—such as Claude—to F5 BIG‑IP appliances. By exposing a set of declarative tools that wrap the iControl REST API, it turns network device management into first‑class actions that can be invoked directly from an AI conversation. Developers no longer need to write custom scripts or manual API calls; instead, they can ask an assistant to create a virtual server, adjust pool members, or deploy iRules, and the MCP translates those requests into authenticated REST calls against the target F5.

At its core, the server provides four primary tools—, , , and . Each tool accepts a JSON payload describing the desired F5 object (e.g., a VIP, pool, or profile) and performs the corresponding CRUD operation. The implementation relies on Python’s library to communicate with the iControl REST endpoint, while sensitive configuration such as device IPs and credentials are sourced from environment variables in a file. This separation of concerns keeps the codebase clean and secure, allowing operators to rotate secrets without touching the server logic.

Key capabilities include:

  • Tool‑based abstraction: Commands are packaged as reusable tools, making them easy to expose through any MCP‑compliant client.
  • Transport agnostic: The server runs over the standard transport, which means it can be integrated into desktop applications (e.g., Claude Desktop), web interfaces, or even CI/CD pipelines.
  • Extensibility: The modular design permits rapid addition of new tools or support for other F5 object types without modifying the core server loop.
  • Docker readiness: A provided Dockerfile enables quick deployment in containerized environments, simplifying scaling and isolation.

Real‑world scenarios that benefit from this server include:

  • Rapid provisioning: An AI assistant can spin up a new VIP for a microservice with a single prompt, eliminating manual configuration steps.
  • Policy enforcement: Teams can use the server to apply consistent iRule sets or security profiles across multiple pools, ensuring compliance through automated tool calls.
  • Operational troubleshooting: By querying the current state of objects, operators can quickly diagnose misconfigurations or performance bottlenecks during a support session.
  • DevOps automation: Continuous delivery pipelines can invoke the MCP server to update F5 configurations in sync with application deployments, reducing drift and human error.

Overall, the F5 MCP Server empowers developers to treat network device management as an AI‑driven service. Its clean tool interface, secure configuration handling, and transport flexibility make it a practical addition to any AI‑centric infrastructure toolkit.