MCP Gateway

by jowpereira

Integrations

  • Provides the foundation for the MCP Gateway, transforming FastAPI endpoints into MCP tools that allow LLMs to interact with corporate APIs in a controlled manner.

  • Supports project version control and distribution through Git repository cloning.

  • Hosts the FastAPI-MCP framework that this gateway is based on, allowing contribution and access to the core functionality.

MCP ゲートウェイ – API およびセルフサービス ポータル

このリポジトリには、RBAC 認証とセルフサービス ポータルを使用して、安全かつスケーラブルで監査可能な方法でツール (内部 API) を公開、管理、使用するためのエンタープライズ ソリューションである MCP ゲートウェイが含まれています。


まとめ


概要

MCP ゲートウェイは次の要素で構成されます。

  • バックエンド: FastAPI + RBAC + JWT + JSON 永続性 (NoSQL 対応)
  • **フロントエンド:**バックエンドと統合された React (Vite) を実行 ( /frontend/distにビルドされ、静的に提供される)

フォルダ構造

mcp-server/ ├── app/ # Backend FastAPI │ ├── main.py # Entrypoint │ ├── config.py # Configurações │ ├── auth.py # Autenticação/JWT │ ├── utils/ # Utilitários (RBAC, dependências) │ └── groups/ │ ├── routes.py # Rotas (APIs) │ └── tools.py # Utilitários de permissão ├── data/ # Dados persistentes │ └── rbac.json # Usuários, grupos, permissões ├── frontend/ # Portal React (Vite) │ ├── src/ # Código-fonte React │ └── dist/ # Build de produção (servido pelo FastAPI) ├── requirements.txt # Dependências Python ├── README.md # Este documento └── ...

スピンの仕方(開発)

1. バックエンド(FastAPI)

python -m venv venv .\venv\Scripts\activate pip install -r requirements.txt uvicorn app.main:app --reload

2. フロントエンド(React)

cd frontend npm install npm run dev

次の URL にアクセスします: http://localhost:5173 (dev) またはhttp://localhost:8000 (prod)

3. 本番環境向けフロントエンドビルド

cd frontend npm run build

ファイルはfrontend/distに生成されます。 FastAPI はこれらのファイルを自動的に提供できます。


特徴

  • JWT ログイン (ユーザー、グループ管理者、グローバル管理者)
  • グループ、ユーザー、ツール管理 (CRUD)
  • グループ管理者によるツールの動的な作成
  • ポータル経由のツールの安全な消費
  • ヘルスチェック、登録、自動ドキュメント化(Swagger)
  • NoSQL データベース統合と SSO に対応

RBAC構造の例

ユーザー、グループ、権限の例については、 data/rbac.jsonを参照してください。


安全

  • JWT、RBAC、共有レジストリ
  • CORS、HTTPS、レート制限などに対応しています。

APIドキュメント

Swagger の場合は/docsに、Redoc の場合は/redoc移動します。


システム要件

詳細な機能要件、非機能要件、およびビジネス要件については、 docs/REQUISITOS.mdファイルを参照してください。


完全なドキュメント

詳細なプロジェクトドキュメントは、 docs/フォルダに集中しています。


優れた実践と観察

  • 依存関係を最新の状態に保ちます。
  • Python には仮想環境を使用します。
  • 本番環境にデプロイする前に必ずフロントエンドを構築してください。
  • docs/内の他のモジュールのドキュメントを確認してください。
  • ヒント: 問題とプル リクエストを使用して変更を提案し、決定の履歴を維持します。

このドキュメントは、設計の変更を反映するために定期的に確認および更新する必要があります。

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

大規模言語モデル (LLM) が制御されたコンテキスト内でエンタープライズ API およびサービスと対話できるようにする安全なブリッジ。

  1. まとめ
    1. 概要
      1. フォルダ構造
        1. スピンの仕方(開発)
          1. 1. バックエンド(FastAPI)
          2. 2. フロントエンド(React)
          3. 3. 本番環境向けフロントエンドビルド
        2. 特徴
          1. RBAC構造の例
            1. 安全
              1. APIドキュメント
                1. システム要件
                  1. 完全なドキュメント
                    1. 優れた実践と観察

                      Related MCP Servers

                      • -
                        security
                        F
                        license
                        -
                        quality
                        A comprehensive Model Context Protocol server that bridges LLMs with self-hosted media services, enabling natural language control of TV shows, movies, downloads, and notifications while maintaining traditional API access.
                        Last updated -
                        TypeScript
                      • -
                        security
                        A
                        license
                        -
                        quality
                        A Model Context Protocol server that enables LLMs like Claude to interact with the Alpaca trading API, allowing for trading stocks, checking positions, fetching market data, and managing accounts through natural language.
                        Last updated -
                        Python
                        MIT License
                      • -
                        security
                        A
                        license
                        -
                        quality
                        A Model Context Protocol Server that enables LLMs to interact with and execute REST API calls through natural language prompts, supporting GET/PUT/POST/PATCH operations on configured APIs.
                        Last updated -
                        5
                        Python
                        Apache 2.0
                      • -
                        security
                        A
                        license
                        -
                        quality
                        Bridges Large Language Models with Language Server Protocol interfaces, allowing LLMs to access LSP's hover information, completions, diagnostics, and code actions for improved code suggestions.
                        Last updated -
                        2
                        TypeScript
                        MIT License

                      View all related MCP servers

                      ID: 57bbyvzkjx