Back to Home
AD-Archer icon

internal-ai-bridge-mcp

Verified Safe

by AD-Archer

Overview

This project acts as a Model Context Protocol (MCP) bridge, enabling OpenWebUI or other MCP-capable clients (like n8n) to communicate with an internal, in-house AI platform via HTTP webhooks, providing conversation memory and OpenAI-compatible endpoints.

Installation

Run Command
docker run --rm -p 8765:8765 --env-file .env -v "$(pwd)/data:/app/data" ghcr.io/ad-archer/external-ai-bridge-mcp:latest

Environment Variables

  • AI_WEBHOOK_URL
  • MODEL_NAME
  • CONVERSATION_DB_PATH
  • CONVERSATION_HISTORY_LIMIT
  • MESSAGE_RETENTION_DAYS
  • AI_API_KEY
  • AI_TIMEOUT
  • ENABLE_BEARER_AUTH
  • API_BEARER_TOKEN
  • ROUTE_BEARER_TOKENS
  • EXTRA_WEBHOOKS
  • FRONTEND_WEBHOOK_URL

Security Notes

The server uses Pydantic for configuration validation, `sqlite3` with parameterized queries to prevent SQL injection, and provides a `BearerAuthMiddleware` for API authentication. It includes retry logic for AI webhook calls. A notable feature is the `trigger_webhook` tool which can invoke arbitrary URLs if not targeting a pre-configured alias, posing a potential Server-Side Request Forgery (SSRF) risk if the bridge is exposed without strong authentication or if an attacker gains control of the MCP client. However, this is described as an intended feature for flexibility. No 'eval' or obvious obfuscation/malicious patterns were found.

Similar Servers

Stats

Interest Score32
Security Score8
Cost ClassMedium
Avg Tokens1000
Stars2
Forks0
Last Update2026-01-09

Tags

AI IntegrationMCP BridgeOpenAI CompatibleWebhooksConversation Memory