Prem MCP Server

Integrations

  • Supports configuration via environment variables stored in .env files, allowing users to securely manage their Prem AI credentials

  • Offers integration with GitHub for issue tracking, contributions, and repository management for the MCP server codebase

  • Runs as a Node.js application, with support for v16 or higher, enabling server-side execution of the MCP protocol

Prem 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. 游标配置

要将 Prem MCP 服务器与 Cursor 一起使用,请将以下内容添加到您的~/.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桌面配置

对于 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].

文件上传

服务器支持将文档上传到 Prem AI 存储库,以进行 RAG 操作。支持的格式:

  • .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 正确

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

执照

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. 1.环境变量
        2. 2. 游标配置
        3. 3.Claude桌面配置
      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
                  1
                  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 -
                  Python
                  • Linux
                  • Apple

                View all related MCP servers

                ID: c1closkd53