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:
手动安装
配置
1.环境变量
在项目根目录中创建一个.env
文件:
2. 游标配置
要将 Prem MCP 服务器与 Cursor 一起使用,请将以下内容添加到您的~/.cursor/mcp.json
:
将/path/to/your/prem-mcp
替换为项目目录的实际路径。
3.Claude桌面配置
对于 Claude Desktop 用户,请将以下内容添加到您的claude_desktop_config.json
中:
用法
启动服务器
示例提示
- 基本聊天
- 带文档的 RAG
- 使用模板
文件上传
服务器支持将文档上传到 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
:提示模板的IDparams
:模板特定参数temperature
:响应随机性(0-1)max_tokens
:最大响应长度
发展
故障排除
常见问题
- 未找到服务器
- 验证
claude_desktop_config.json
中的服务器路径 - 检查服务器是否正在运行
- 验证
- API 密钥无效
- 确保您的 Prem AI API 密钥有效
- 检查 API 密钥是否具有所需的权限
- 文档上传失败
- 验证文件格式是否受支持
- 检查文件权限
- 确保存储库 ID 正确
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
执照
MIT 许可证 - 有关详细信息,请参阅LICENSE文件。
致谢
支持
对于问题和功能请求,请使用 GitHub 问题页面。
This server cannot be installed
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 功能和文档管理功能。
Related MCP Servers
- -securityAlicense-qualityA 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 -9PythonThe Unlicense
- AsecurityAlicenseAqualityA 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 -251PythonMIT License
- -securityFlicense-qualityA 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
- -securityFlicense-qualityA 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