Skip to main content
Glama
ucalyptus
by ucalyptus

プレミアムMCPサーバー

鍛冶屋のバッジ

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

特徴

  • 🤖チャット補完:Prem AIの言語モデルと対話する

  • 📚 RAG サポート: ドキュメント リポジトリ統合による検索拡張生成

  • 📝ドキュメント管理:リポジトリにドキュメントをアップロードして管理する

  • 🎭テンプレートシステム: 特殊な出力には定義済みのプロンプトテンプレートを使用します

  • ストリーミングレスポンス:モデル出力のリアルタイムストリーミング

  • 🛡️エラー処理: 堅牢なエラー処理とログ記録

Related MCP server: MCP Server Sample

前提条件

  • 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 の問題ページをご利用ください。

Install Server
F
license - not found
C
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • A Model Context Protocol server for Wix AI tools

  • Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.

View all MCP Connectors

Latest Blog Posts

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