l2c-ctfs-mcp

l2c-ctfs-mcp

3.4

L2C-CTFs-MCP is a work-in-progress implementation of an MCP server and client for L2C CTFs.

L2C-CTFs-MCP is a project aimed at implementing a Model Context Protocol (MCP) server and client for L2C Capture The Flag (CTF) challenges. It is based on the Remote MCP Functions and utilizes Azure Functions for the server-side implementation. The project is structured into two main components: the server, which is implemented using Azure Functions, and the client, which is a Python library designed to interact with the server. The project is open-source and licensed under the MIT License, making it accessible for developers to contribute and modify.

Features

  • Azure Functions-based server implementation
  • Python client library for easy interaction
  • Open-source under MIT License
  • Structured for easy setup and deployment
  • Based on Remote MCP Functions for robust functionality

Usage with Different Platforms

Azure Functions

python
# Example script to deploy the MCP server on Azure Functions
import azure.functions as func

app = func.FunctionApp()

@app.function_name(name="MCPServer")
def main(req: func.HttpRequest) -> func.HttpResponse:
    # Your server logic here
    return func.HttpResponse("MCP Server is running")

Python Client

python
# Example script to use the Python MCP client
from client import MCPClient

client = MCPClient()
response = client.connect_to_server('http://localhost:7071')
print(response)