Prem MCP Server
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.
ucalyptus
README
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:
npx -y @smithery/cli install @ucalyptus/prem-mcp-server --client claude
Installing Manually
# Using npm
npm install prem-mcp-server
# Using yarn
yarn add prem-mcp-server
# Using pnpm
pnpm add prem-mcp-server
Configuration
1. Environment Variables
Create a .env
file in your project root:
PREM_API_KEY=your_api_key_here
PREM_PROJECT_ID=your_project_id_here
2. Cursor Configuration
To use the Prem MCP server with Cursor, add the following to your ~/.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"
}
}
}
}
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
:
{
"mcpServers": {
"PremAI": {
"command": "npx",
"args": ["prem-mcp-server", "--stdio"],
"env": {
"PREM_API_KEY": "your_api_key_here",
"PREM_PROJECT_ID": "your_project_id_here"
}
}
}
}
Usage
Starting the Server
npx prem-mcp-server
Example Prompts
- Basic Chat
Let's have a conversation about artificial intelligence.
- RAG with Documents
Based on the documents in repository XYZ, what are the key points about [topic]?
- Using Templates
Use template ABC to generate [specific type of content].
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
# 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
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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor

Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.