Fledge MCP Server

Fledge MCP Server

fledge-mcp•bykrupalp525

A Model Context Protocol server that lets AI tools like Cursor interact with Fledge instances to access sensor data, control services and generate frontend code.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes tools for fetching sensor data, listing sensors and ingesting test data into Fledge.
  • •Provides service control tools to check status, start or stop services, and update configuration.
  • •Supports real-time streaming by subscribing to sensors and retrieving the latest readings.
  • •Implements MCP over JSON-RPC 2.0 with initialize, tools/list and tools/call methods.

BEST FOR

  • •Connecting Cursor AI to a local or remote Fledge instance for natural-language monitoring and management.
  • •Generating React UI components and frontend templates from Fledge sensor data.
  • •Debugging and validating Fledge API connectivity from an AI assistant.

ABOUT FLEDGE-MCP

Fledge MCP Server is cataloged as an MCP server attributed to krupalp525. A Model Context Protocol server that lets AI tools like Cursor interact with Fledge instances to access sensor data, control services and generate frontend code. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Fledge MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server support API key authentication?

Yes, a secure server variant adds API key authentication where requests must include a generated key in the X-API-Key header.

How can the server be deployed for scalability?

The README describes deploying the server on Smithery.ai using Docker and the Smithery CLI.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 411e4969e64f · 采集于 2026-11-13 12:35:12 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Fledge MCP Server

This is a Model Context Protocol (MCP) server that connects Fledge functionality to Cursor AI, allowing the AI to interact with Fledge instances via natural language commands.

Prerequisites

  • Fledge installed locally or accessible via API (default: http://localhost:8081)
  • Cursor AI installed
  • Python 3.8+

Installation

  1. Clone this repository:
git clone https://github.com/Krupalp525/fledge-mcp.git
cd fledge-mcp
  1. Install the dependencies:
pip install -r requirements.txt

Running the Server

  1. Make sure Fledge is running:
fledge start
  1. Start the MCP server:
python mcp_server.py

For secure operation with API key authentication:

python secure_mcp_server.py
  1. Verify it's working by accessing the health endpoint:
curl http://localhost:8082/health

You should receive "Fledge MCP Server is running" as the response.

Connecting to Cursor

  1. In Cursor, go to Settings > MCP Servers

  2. Add a new server:

  3. For the secure server, configure the "X-API-Key" header with the value from the api_key.txt file that is generated when the secure server starts.

  4. Test it: Open Cursor's Composer (Ctrl+I), type "Check if Fledge API is reachable," and the AI should call the validate_api_connection tool.

Available Tools

Data Access and Management

  1. get_sensor_data: Fetch sensor data from Fledge with optional filtering by time range and limit
  2. list_sensors: List all sensors available in Fledge
  3. ingest_test_data: Ingest test data into Fledge, with optional batch count

Service Control

  1. get_service_status: Get the status of all Fledge services
  2. start_stop_service: Start or stop a Fledge service by type
  3. update_config: Update Fledge configuration parameters

Frontend Code Generation

  1. generate_ui_component: Generate React components for Fledge data visualization
  2. fetch_sample_frontend: Get sample frontend templates for different frameworks
  3. suggest_ui_improvements: Get AI-powered suggestions for improving UI code

Real-Time Data Streaming

  1. subscribe_to_sensor: Set up a subscription to sensor data updates
  2. get_latest_reading: Get the most recent reading from a specific sensor

Debugging and Validation

  1. validate_api_connection: Check if the Fledge API is reachable
  2. simulate_frontend_request: Test API requests with different methods and payloads

Documentation and Schema

  1. get_api_schema: Get information about available Fledge API endpoints
  2. list_plugins: List available Fledge plugins

Advanced AI-Assisted Features

  1. generate_mock_data: Generate realistic mock sensor data for testing

Testing the API

You can test the server using the included test scripts:

# For standard server
python test_mcp.py

# For secure server with API key
python test_secure_mcp.py

Security Options

The secure server (secure_mcp_server.py) adds API key authentication:

  1. On first run, it generates an API key stored in api_key.txt
  2. All requests must include this key in the X-API-Key header
  3. Health check endpoint remains accessible without authentication

Example API Requests

# Validate API connection
curl -X POST -H "Content-Type: application/json" -d '{"name": "validate_api_connection"}' http://localhost:8082/tools

# Generate mock data
curl -X POST -H "Content-Type: application/json" -d '{"name": "generate_mock_data", "parameters": {"sensor_id": "temp1", "count": 5}}' http://localhost:8082/tools

# Generate React chart component
curl -X POST -H "Content-Type: application/json" -d '{"name": "generate_ui_component", "parameters": {"component_type": "chart", "sensor_id": "temp1"}}' http://localhost:8082/tools

# For secure server, add API key header
curl -X POST -H "Content-Type: application/json" -H "X-API-Key: YOUR_API_KEY" -d '{"name": "list_sensors"}' http://localhost:8082/tools

Extending the Server

To add more tools:

  1. Add the tool definition to tools.json
  2. Implement the tool handler in mcp_server.py and secure_mcp_server.py

Production Considerations

For production deployment:

  • Use HTTPS
  • Deploy behind a reverse proxy like Nginx
  • Implement more robust authentication (JWT, OAuth)
  • Add rate limiting
  • Set up persistent data storage for subscriptions

Deploying on Smithery.ai

The Fledge MCP Server can be deployed on Smithery.ai for enhanced scalability and availability. Follow these steps to deploy:

  1. Prerequisites

    • Docker installed on your local machine
    • A Smithery.ai account
    • The Smithery CLI tool installed
  2. Build and Deploy

    # Build the Docker image
    docker build -t fledge-mcp .
    
    # Deploy to Smithery.ai
    smithery deploy
    
  3. Configuration The smithery.json file contains the configuration for your deployment:

    • WebSocket transport on port 8082
    • Configurable Fledge API URL
    • Tool definitions and parameters
    • Timeout settings
  4. Environment Variables Set the following environment variables in your Smithery.ai dashboard:

    • FLEDGE_API_URL: Your Fledge API endpoint
    • API_KEY: Your secure API key (if using secure mode)
  5. Verification After deployment, verify your server is running:

    smithery status fledge-mcp
    
  6. Monitoring Monitor your deployment through the Smithery.ai dashboard:

    • Real-time logs
    • Performance metrics
    • Error tracking
    • Resource usage
  7. Updating To update your deployment:

    # Build new image
    docker build -t fledge-mcp .
    
    # Deploy updates
    smithery deploy --update
    

JSON-RPC Protocol Support

The server implements the Model Context Protocol (MCP) using JSON-RPC 2.0 over WebSocket. The following methods are supported:

  1. initialize

    {
        "jsonrpc": "2.0",
        "method": "initialize",
        "params": {},
        "id": "1"
    }
    

    Response:

    {
        "jsonrpc": "2.0",
        "result": {
            "serverInfo": {
                "name": "fledge-mcp",
                "version": "1.0.0",
                "description": "Fledge Model Context Protocol (MCP) Server",
                "vendor": "Fledge",
                "capabilities": {
                    "tools": true,
                    "streaming": true,
                    "authentication": "api_key"
                }
            },
            "configSchema": {
                "type": "object",
                "properties": {
                    "fledge_api_url": {
                        "type": "string",
                        "description": "Fledge API URL",
                        "default": "http://localhost:8081/fledge"
                    }
                }
            }
        },
        "id": "1"
    }
    
  2. tools/list

    {
        "jsonrpc": "2.0",
        "method": "tools/list",
        "params": {},
        "id": "2"
    }
    

    Response: Returns the list of available tools and their parameters.

  3. tools/call

    {
        "jsonrpc": "2.0",
        "method": "tools/call",
        "params": {
            "name": "get_sensor_data",
            "parameters": {
                "sensor_id": "temp1",
                "limit": 10
            }
        },
        "id": "3"
    }
    

Error Codes

The server follows standard JSON-RPC 2.0 error codes:

  • -32700: Parse error
  • -32600: Invalid Request
  • -32601: Method not found
  • -32602: Invalid params
  • -32000: Server error

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Fledge MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/fledge-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools