Xano MCP Server

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.

Integrations

  • Uses environment variables for configuration management, allowing secure storage of API keys and other sensitive data needed for Xano API interactions.

  • Provides repository management for the MCP server codebase, with instructions for cloning and contributing to the project.

  • Manages dependencies and provides scripts for building, developing, and running the MCP server.

Xano MCP サーバー

Xano APIと連携するためのモデルコンテキストプロトコル(MCP)サーバー実装。このサーバーは、MCPインターフェースを介してXanoデータベース操作を管理するためのツールとリソースを提供します。

特徴

  • Xano APIによる安全な認証
  • TypeScript を使用した型安全な API のやり取り
  • 環境ベースの構成
  • MCP準拠インターフェース
  • ワークスペース管理ツール
  • テーブルコンテンツの操作(作成、読み取り、更新)
  • 詳細なメッセージによるエラー処理の改善

インストール

# Clone the repository git clone [your-repo-url] cd xano_mcp # Install dependencies npm install

構成

  1. サンプル環境ファイルをコピーします。
cp .env.example .env
  1. Xano 資格情報を使用して.envファイルを更新します。
XANO_API_KEY=your_api_key_here XANO_API_URL=your_xano_api_url NODE_ENV=development API_TIMEOUT=10000

発達

# Build the project npm run build # Run in development mode npm run dev # Start the server npm start

プロジェクト構造

xano_mcp/ ├── src/ │ ├── api/ │ │ └── xano/ │ │ ├── client/ # API client implementation │ │ ├── models/ # Data models and types │ │ ├── services/ # API service implementations │ │ └── utils/ # Utility functions │ ├── mcp/ │ │ ├── server/ # MCP server implementation │ │ ├── tools/ # MCP tool implementations │ │ └── types/ # Tool-specific types │ ├── config.ts # Configuration management │ └── index.ts # Main entry point ├── .env # Environment variables (not in git) ├── .env.example # Example environment variables └── tsconfig.json # TypeScript configuration

利用可能なMCPツール

ワークスペースツール

  • get_workspaces : 利用可能なワークスペースをすべて一覧表示する

テーブルツール

  • create_table : ワークスペースに新しいテーブルを作成する
  • get_table_content : ページ区切りをサポートするテーブルからコンテンツを取得する
  • add_table_content : テーブルに新しいコンテンツを追加する
  • update_table_content : テーブル内の既存のコンテンツを更新する
  • get_all_tables : ワークスペース内のすべてのテーブルを詳細情報とともに一覧表示します

使用例

ワークスペースの操作

// List available workspaces const result = await mcp.use_tool("get_workspaces", {}); console.log('Workspaces:', result);

テーブルの管理

// Create a new table const createResult = await mcp.use_tool("create_table", { workspaceId: 123, name: "MyTable" }); // Add content to a table const addResult = await mcp.use_tool("add_table_content", { workspaceId: 123, tableId: 456, content: { created_at: "2024-01-22T17:07:00.000Z" } }); // Get table content with pagination const getResult = await mcp.use_tool("get_table_content", { workspaceId: 123, tableId: 456, pagination: { page: 1, items: 50 } }); // Update table content const updateResult = await mcp.use_tool("update_table_content", { workspaceId: 123, tableId: 456, contentId: "789", content: { created_at: "2024-01-22T17:07:00.000Z" } }); // List all tables in a workspace const tables = await mcp.use_tool("get_all_tables", { workspaceId: 123 }); console.log('Tables:', tables); // Returns an array of tables with their details: // [ // { // id: number, // name: string, // description: string, // created_at: string, // updated_at: string, // guid: string, // auth: boolean, // tag: string[], // workspaceId: number // }, // ... // ]

環境変数

変数説明必須デフォルト
XANO_API_KEYXano API認証キーはい-
XANO_API_URLXano APIエンドポイントURLはい-
ノード環境環境(開発・生産)いいえ発達
API_タイムアウトAPIリクエストのタイムアウト(ミリ秒)いいえ10000

エラー処理

サーバーは、次の詳細なエラー メッセージを提供します。

  • 無効なパラメータ
  • 認証失敗
  • APIリクエストの失敗
  • コンテンツ検証エラー
  • 不明なツールのリクエスト

安全

  • 環境変数は機密性の高い設定に使用されます
  • 秘密の漏洩を防ぐためにTruffleHogの設定が含まれています
  • APIキーと機密データはリポジトリにコミットされません

貢献

  1. 機能ブランチを作成する
  2. 変更を加える
  3. プルリクエストを送信する

ライセンス

ISC

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

モデル コンテキスト プロトコル (MCP) インターフェイスを介して Xano API との対話を可能にし、Xano データベース操作の安全で型安全な管理を提供します。

  1. Features
    1. Installation
      1. Configuration
        1. Development
          1. Project Structure
            1. Available MCP Tools
              1. Workspace Tools
              2. Table Tools
            2. Usage Examples
              1. Working with Workspaces
              2. Managing Tables
            3. Environment Variables
              1. Error Handling
                1. Security
                  1. Contributing
                    1. License

                      Appeared in Searches

                      ID: fygsnfzjkv