Sponsored by Deepsite.site

Voxta MCP Bridge Provider

Created By
vega-holdings10 months ago
Voxta provider that enables communication with Model Context Protocol (MCP) servers
Content

Voxta MCP Bridge Provider

A Voxta provider that enables communication with Model Context Protocol (MCP) servers, allowing Voxta to leverage external tools and resources through the MCP protocol.

Prerequisites

  • .NET 8.0 SDK
  • Python 3.10 or higher
  • Git

Setup Instructions

Windows

  1. Clone the repository:

    git clone https://github.com/voxta/voxta-mcp.git
    cd voxta-mcp
    
  2. Create Python virtual environment:

    python -m venv venv
    .\venv\Scripts\activate
    pip install mcp-agent
    
  3. Build and run the project:

    dotnet build
    dotnet run
    

Linux

  1. Clone the repository:

    git clone https://github.com/voxta/voxta-mcp.git
    cd voxta-mcp
    
  2. Create Python virtual environment:

    python3 -m venv venv
    source venv/bin/activate
    pip install mcp-agent
    
  3. Build and run the project:

    dotnet build
    dotnet run
    

Running the Provider

  1. Ensure your MCP server is running and accessible at the configured address.

  2. Configure appsettings.json with your settings:

    {
      "MCPBridge": {
        "PythonExePath": "venv/bin/python",  // Path to Python in virtual environment
        "MCPClientScriptPath": "mcp_client.py",  // Path to the MCP client script
        "MCPServerAddress": "localhost:50051"  // Your MCP server address
      }
    }
    
  3. Run the provider:

    dotnet run
    
  4. The provider will:

    • Start the Python MCP client process
    • Connect to your MCP server
    • Register with Voxta
    • Begin handling action requests
  5. Monitor the console output for:

    • Connection status
    • Action triggers
    • Error messages
    • MCP tool responses

Troubleshooting

Common issues and solutions:

  1. "MCPClientScriptPath is not configured"

    • Ensure appsettings.json exists and has the correct path to mcp_client.py
  2. Python process fails to start

    • Verify Python virtual environment is activated
    • Check PythonExePath in configuration
    • Ensure mcp-agent is installed in the virtual environment
  3. Cannot connect to MCP server

    • Verify the server is running
    • Check MCPServerAddress configuration
    • Ensure no firewall is blocking the connection

Configuration

The provider is configured through appsettings.json:

{
  "MCPBridge": {
    "PythonExePath": "venv/bin/python",  // On Windows: "venv\\Scripts\\python.exe"
    "MCPClientScriptPath": "mcp_client.py",  // Required: Path to the Python MCP client script
    "MCPServerAddress": "localhost:50051"  // Address of your MCP server
  },
  "Serilog": {
    "Using": ["Serilog.Sinks.Console"],
    "WriteTo": [
      {
        "Name": "Console",
        "Args": {
          "outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:l}{NewLine}{Exception}",
          "theme": "Serilog.Sinks.SystemConsole.Themes.SystemConsoleTheme::Literate, Serilog.Sinks.Console"
        }
      }
    ],
    "MinimumLevel": {
      "Default": "Information",
      "Override": {
        "Microsoft": "Warning",
        "System.Net.Http.HttpClient": "Warning",
        "Voxta": "Information",
        "Voxta.MCPBridgeProvider": "Debug"
      }
    }
  }
}

Required Configuration

  • MCPBridge:MCPClientScriptPath: Path to the Python MCP client script that handles communication with the MCP server.
  • MCPBridge:MCPServerAddress: Address of your MCP server (e.g., "localhost:50051" for a local server).

Optional Configuration

  • MCPBridge:PythonExePath: Path to the Python executable. Defaults to "python" (or "python3" on Linux).

Connecting to MCP Servers

  1. Start your MCP server (e.g., Home Assistant MCP server) and note its address (typically localhost:50051).

  2. Update the MCPServerAddress in appsettings.json to match your MCP server's address.

  3. The provider will automatically connect to the MCP server when started and make its tools available to Voxta.

Usage

  1. The provider will automatically register available MCP tools with Voxta.

  2. When Voxta triggers an action, the provider will:

    • Translate the Voxta action to an MCP tool call
    • Send the request to the MCP server through the Python client
    • Receive the response and send it back to Voxta

Development

  • The C# code handles the Voxta integration and process management
  • The Python script (mcp_client.py) handles MCP protocol communication
  • Both components communicate through stdin/stdout using JSON messages

License

[License information here]

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
DeepChatYour AI Partner on Desktop
Amap Maps高德地图官方 MCP Server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Serper MCP ServerA Serper MCP Server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
ChatWiseThe second fastest AI chatbot™
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Tavily Mcp
Playwright McpPlaywright MCP server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
CursorThe AI Code Editor
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.