Skip to main content
Glama

Prem MCP Server

プレミアムMCPサーバー

Prem AI用のモデルコンテキストプロトコル(MCP)サーバー実装。Claude やその他の MCP 対応クライアントとのシームレスな統合を実現します。このサーバーは、MCP インターフェースを介して Prem AI の強力な機能へのアクセスを提供します。

特徴

  • 🤖チャット補完:Prem AIの言語モデルと対話する
  • 📚 RAG サポート: ドキュメント リポジトリ統合による検索拡張生成
  • 📝ドキュメント管理:リポジトリにドキュメントをアップロードして管理する
  • 🎭テンプレートシステム: 特殊な出力には定義済みのプロンプトテンプレートを使用します
  • ストリーミングレスポンス:モデル出力のリアルタイムストリーミング
  • 🛡️エラー処理: 堅牢なエラー処理とログ記録

前提条件

  • Node.js (v16 以上)
  • APIキーを持つPrem AIアカウント
  • PremプロジェクトID

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の prem-mcp-server を自動的にインストールするには:

npx -y @smithery/cli install @ucalyptus/prem-mcp-server --client claude

手動でインストールする

# Using npm npm install prem-mcp-server # Using yarn yarn add prem-mcp-server # Using pnpm pnpm add prem-mcp-server

構成

1. 環境変数

プロジェクト ルートに.envファイルを作成します。

PREM_API_KEY=your_api_key_here PREM_PROJECT_ID=your_project_id_here

2. カーソルの設定

Cursor で Prem MCP サーバーを使用するには、 ~/.cursor/mcp.jsonに以下を追加します。

{ "mcpServers": { "PremAI": { "command": "node", "args": ["/path/to/your/prem-mcp/build/index.js", "--stdio"], "env": { "PREM_API_KEY": "your_api_key_here", "PREM_PROJECT_ID": "your_project_id_here" } } } }

/path/to/your/prem-mcpプロジェクト ディレクトリへの実際のパスに置き換えます。

3. クロードデスクトップ構成

Claude Desktop ユーザーの場合は、 claude_desktop_config.jsonに以下を追加します。

{ "mcpServers": { "PremAI": { "command": "npx", "args": ["prem-mcp-server", "--stdio"], "env": { "PREM_API_KEY": "your_api_key_here", "PREM_PROJECT_ID": "your_project_id_here" } } } }

使用法

サーバーの起動

npx prem-mcp-server

プロンプトの例

  1. 基本チャット
Let's have a conversation about artificial intelligence.
  1. 書類付きRAG
Based on the documents in repository XYZ, what are the key points about [topic]?
  1. テンプレートの使用
Use template ABC to generate [specific type of content].

ドキュメントのアップロード

サーバーは、RAG操作用のPrem AIリポジトリへのドキュメントのアップロードをサポートしています。サポートされている形式:

  • .txt
  • .pdf
  • .docx

APIリファレンス

チャット完了パラメータ

  • query : 入力テキスト
  • system_prompt : カスタムシステムプロンプト
  • model : モデル識別子
  • temperature :応答のランダム性(0-1)
  • max_tokens : 最大レスポンス長
  • repository_ids : RAGのリポジトリIDの配列
  • similarity_threshold : 文書の類似性の閾値
  • limit : ドキュメントチャンクの最大数

テンプレートパラメータ

  • template_id : プロンプトテンプレートのID
  • params : テンプレート固有のパラメータ
  • temperature :応答のランダム性(0-1)
  • max_tokens : 最大レスポンス長

発達

# Clone the repository git clone https://github.com/yourusername/prem-mcp-server.git # Install dependencies npm install # Build the project npm run build # Run tests npm test

トラブルシューティング

よくある問題

  1. サーバーが見つかりません
    • claude_desktop_config.jsonのサーバーパスを確認します。
    • サーバーが稼働しているか確認する
  2. APIキーが無効です
    • Prem AI APIキーが有効であることを確認してください
    • APIキーに必要な権限があるか確認する
  3. ドキュメントのアップロードに失敗しました
    • ファイル形式がサポートされていることを確認する
    • ファイルの権限を確認する
    • リポジトリIDが正しいことを確認する

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

ライセンス

MIT ライセンス - 詳細についてはLICENSEファイルを参照してください。

謝辞

サポート

問題や機能のリクエストについては、GitHub の問題ページをご利用ください。

-
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.

Claude やその他の MCP 互換クライアントとのシームレスな統合を可能にし、Prem AI の言語モデル、RAG 機能、ドキュメント管理機能にアクセスできるようにするモデル コンテキスト プロトコル サーバーの実装。

  1. 特徴
    1. 前提条件
      1. インストール
        1. Smithery経由でインストール
        2. 手動でインストールする
      2. 構成
        1. 環境変数
        2. カーソルの設定
        3. クロードデスクトップ構成
      3. 使用法
        1. サーバーの起動
        2. プロンプトの例
        3. ドキュメントのアップロード
      4. APIリファレンス
        1. チャット完了パラメータ
        2. テンプレートパラメータ
      5. 発達
        1. トラブルシューティング
          1. よくある問題
        2. 貢献
          1. ライセンス
            1. 謝辞
              1. サポート

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  A Model Context Protocol server that connects Claude and other MCP clients to Aider, enabling AI assistants to efficiently edit files, create new files, and interact with git repositories through natural language.
                  Last updated -
                  9
                  Python
                  The Unlicense
                  • Linux
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  A Model Context Protocol server that enables AI assistants like Claude to interact with Outline document services, supporting document searching, reading, creation, editing, and comment management.
                  Last updated -
                  25
                  19
                  Python
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  A Model Context Protocol server that bridges AI assistants like Claude with Wordware's specialized agent capabilities, allowing dynamic loading and access to any Wordware flow through a standardized interface.
                  Last updated -
                  Python
                • -
                  security
                  F
                  license
                  -
                  quality
                  A customized MCP server that enables integration between LLM applications and documentation sources, providing AI-assisted access to LangGraph and Model Context Protocol documentation.
                  Last updated -
                  1
                  Python
                  • Linux
                  • Apple

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/ucalyptus/prem-mcp-server'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server