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
Available as an npm package for easy installation and execution through the npm package registry
Provides installation support through the pnpm package manager for efficient node module management
Supports installation through the Yarn package manager as an alternative to npm
Prem MCP Server
A Model Context Protocol (MCP) server implementation for Prem AI, enabling seamless integration with Claude and other MCP-compatible clients. This server provides access to Prem AI's powerful features through the MCP interface.
Features
- 🤖 Chat Completions: Interact with Prem AI's language models
- 📚 RAG Support: Retrieval-Augmented Generation with document repository integration
- 📝 Document Management: Upload and manage documents in repositories
- 🎭 Template System: Use predefined prompt templates for specialized outputs
- ⚡ Streaming Responses: Real-time streaming of model outputs
- 🛡️ Error Handling: Robust error handling and logging
Prerequisites
- Node.js (v16 or higher)
- A Prem AI account with API key
- A Prem project ID
Installation
Installing via Smithery
To install prem-mcp-server for Claude Desktop automatically via Smithery:
Installing Manually
Configuration
1. Environment Variables
Create a .env
file in your project root:
2. Cursor Configuration
To use the Prem MCP server with Cursor, add the following to your ~/.cursor/mcp.json
:
Replace /path/to/your/prem-mcp
with the actual path to your project directory.
3. Claude Desktop Configuration
For Claude Desktop users, add the following to your claude_desktop_config.json
:
Usage
Starting the Server
Example Prompts
- Basic Chat
- RAG with Documents
- Using Templates
Document Upload
The server supports uploading documents to Prem AI repositories for RAG operations. Supported formats:
.txt
.pdf
.docx
API Reference
Chat Completion Parameters
query
: The input textsystem_prompt
: Custom system promptmodel
: Model identifiertemperature
: Response randomness (0-1)max_tokens
: Maximum response lengthrepository_ids
: Array of repository IDs for RAGsimilarity_threshold
: Threshold for document similaritylimit
: Maximum number of document chunks
Template Parameters
template_id
: ID of the prompt templateparams
: Template-specific parameterstemperature
: Response randomness (0-1)max_tokens
: Maximum response length
Development
Troubleshooting
Common Issues
- Server Not Found
- Verify the server path in
claude_desktop_config.json
- Check if the server is running
- Verify the server path in
- API Key Invalid
- Ensure your Prem AI API key is valid
- Check if the API key has the required permissions
- Document Upload Failed
- Verify file format is supported
- Check file permissions
- Ensure repository ID is correct
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see the LICENSE file for details.
Acknowledgments
- Prem AI for their powerful AI platform
- Model Context Protocol for the protocol specification
- Anthropic for Claude and the MCP ecosystem
Support
For issues and feature requests, please use the GitHub Issues page.
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.
A Model Context Protocol server implementation that enables seamless integration with Claude and other MCP-compatible clients to access Prem AI's language models, RAG capabilities, and document management features.
Related MCP Servers
- -securityFlicense-qualityA comprehensive suite of Model Context Protocol servers designed to extend AI agent Claude's capabilities with integrations for knowledge management, reasoning, advanced search, news access, and workspace tools.Last updated -5TypeScript
- AsecurityFlicenseAqualityA Model Context Protocol (MCP) server that allows Claude AI to interact with custom tools, enabling extension of Claude's capabilities through the MCP framework.Last updated -TypeScript
- -securityFlicense-qualityA Model Context Protocol server that gives Claude access to multiple AI models (Gemini, OpenAI, OpenRouter) for enhanced code analysis, problem-solving, and collaborative development through AI orchestration with conversations that continue across tasks.Last updated -5,128Python
- -securityFlicense-qualityAn enhanced Model Context Protocol server that enables Claude to seamlessly collaborate with multiple AI models (Gemini, OpenAI, local models) for code analysis and development tasks, maintaining context across conversations.Last updated -14423JavaScript