drio
Open app

Prem MCP Server

Source

Implementation of an MCP Server to use the Prem SDK

Catalog onlyCatalog onlySTDIO

Overview

Prem MCP Server is an implementation of a Model Context Protocol (MCP) server designed for seamless integration with the Prem AI SDK, enabling access to powerful AI features through the MCP interface.

To use the Prem MCP Server, install it via npm, yarn, or pnpm, configure your environment variables, and start the server using the command npx prem-mcp-server. You can then interact with the server using various prompts.

  • 🤖 Chat Completions: Engage with Prem AI's language models. - 📚 RAG Support: Integrate document repositories for Retrieval-Augmented Generation. - 📝 Document Management: Upload and manage documents in repositories. - 🎭 Template System: Utilize predefined prompt templates for specialized outputs. - ⚡ Streaming Responses: Receive real-time streaming of model outputs. - 🛡️ Error Handling: Robust error handling and logging capabilities.
  1. Facilitating conversations about various topics using AI.
  2. Generating insights based on documents in a repository.
  3. Creating specialized content using predefined templates.

Add to your AI client

Use these steps to connect Prem MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "prem-mcp-server-ucalyptus": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-prem-mcp-server-ucalyptus"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "prem-mcp-server-ucalyptus": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-prem-mcp-server-ucalyptus"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "prem-mcp-server-ucalyptus": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-prem-mcp-server-ucalyptus"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "prem-mcp-server-ucalyptus": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-prem-mcp-server-ucalyptus"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "prem-mcp-server-ucalyptus": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-prem-mcp-server-ucalyptus"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "prem-mcp-server-ucalyptus": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-prem-mcp-server-ucalyptus"
      ]
    }
  }
}

FAQ

Can I use Prem MCP Server without a Prem AI account?

No, a valid Prem AI account and API key are required to use the server.

What document formats are supported for upload?

The server supports `.txt`, `.pdf`, and `.docx` formats for document uploads.

How do I troubleshoot common issues?

Common issues include server path verification, API key validation, and ensuring supported file formats for uploads.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3868,"uuid":"c8cda797-944b-4dbf-9125-2f08e2db264c","name":"prem-mcp-server","title":"Prem MCP Server","description":"Implementation of an MCP Server to use the Prem SDK","avatar_url":"https://avatars.githubusercontent.com/u/36279638?v=4","created_at":"2025-03-22T04:38:00.414Z","updated_at":"2025-03-22T04:51:52.026Z","status":"created","author_name":"ucalyptus","author_avatar_url":"https://avatars.githubusercontent.com/u/36279638?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/ucalyptus/prem-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/8ef48a7a1d6789da58ca2b4dc4c08f28c844477146fc701f5c35a744363c6e70/68747470733a2f2f736d6974686572792e61692f62616467652f407563616c79707475732f7072656d2d6d63702d736572766572","type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-25 22:24:52\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]