Skip to main content
Glama
prismism-dev

Prismism MCP Server

by prismism-dev
README.md
# @prismism/mcp-server

MCP server for [Prismism](https://prismism.dev) — **DocSend for AI agents.**

Upload any file → get a tracked, shareable link. PDF, HTML, Markdown, images, video. Access control, analytics, email capture, webhooks.

## Quick Start

### 1. Get an API key

Create a free account at [prismism.dev](https://prismism.dev) or use the `prismism_register` tool after setup.

### 2. Connect your client

#### Hosted endpoint (recommended)

No install needed — connect directly to the Prismism API:

**Claude Code**

```bash
claude mcp add prismism --transport http https://prismism.dev/mcp \
  --header "x-api-key: pal_your_key_here"
```

**Claude Desktop** — edit `~/Library/Application Support/Claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "prismism": {
      "url": "https://prismism.dev/mcp",
      "headers": {
        "x-api-key": "pal_your_key_here"
      }
    }
  }
}
```

**Cursor** — edit `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "prismism": {
      "url": "https://prismism.dev/mcp",
      "headers": {
        "x-api-key": "pal_your_key_here"
      }
    }
  }
}
```

**Windsurf** — edit `~/.codeium/windsurf/mcp_config.json`:

```json
{
  "mcpServers": {
    "prismism": {
      "serverUrl": "https://prismism.dev/mcp",
      "headers": {
        "x-api-key": "pal_your_key_here"
      }
    }
  }
}
```

**VS Code** — edit `.vscode/mcp.json`:

```json
{
  "servers": {
    "prismism": {
      "type": "http",
      "url": "https://prismism.dev/mcp",
      "headers": {
        "x-api-key": "pal_your_key_here"
      }
    }
  }
}
```

#### Local (stdio) — alternative

Run via npx if you prefer local transport:

```json
{
  "mcpServers": {
    "prismism": {
      "command": "npx",
      "args": ["@prismism/mcp-server"],
      "env": {
        "PRISMISM_API_KEY": "pal_your_key_here"
      }
    }
  }
}
```

### 3. Verify it works

Ask your agent: **"Use the prismism_health tool to check the connection"**

## Tools

| Tool | Auth required | Description |
|------|:---:|-------------|
| `prismism_health` | — | Check connection and auth status |
| `prismism_register` | — | Create account + get API key (one-time) |
| `prismism_publish` | ✓ | Publish a file, HTML, or Markdown and get a shareable link |
| `prismism_list` | ✓ | List your artifacts with pagination |
| `prismism_get` | ✓ | Get artifact details + analytics |
| `prismism_update` | ✓ | Update title, access level, gates, content, or expiration |
| `prismism_content` | ✓ | Fetch raw artifact content (text or base64) |
| `prismism_delete` | ✓ | Permanently delete an artifact |
| `prismism_account` | ✓ | Get account info, plan, and usage |

### Publishing

```
"Publish this report as a shareable link"
```

The `prismism_publish` tool supports three modes:

- **File upload** — Set `content` (plain text or base64) + `filename`. Use `encoding: "base64"` for binary files.
- **Inline HTML** — Set `html` with raw HTML content. No file needed.
- **Inline Markdown** — Set `markdown` with raw Markdown content. No file needed.

All modes support optional `access`, `password`, `requireEmail`, `allowedDomains`, `allowedEmails`, `expiresAt`, and `allowNetwork` parameters.

Supported file formats: PDF, HTML, Markdown, Images (PNG/JPG/GIF/SVG/WebP), Video (MP4).

### Fetching content

```
"Get the content of my artifact abc123"
```

The `prismism_content` tool fetches raw artifact content. Text formats return as UTF-8 strings, binary formats return as base64. Owner API key bypasses all gates automatically. For non-owned gated content, pass `password` or `email` parameters.

### Access control

```
"Make this artifact private"
"Set allowlist access with alice@acme.com"
```

The `prismism_update` tool supports `access` (public/private/allowlist), `allowedEmails`, `password`, `requireEmail`, and `allowedDomains`. Changing to private/allowlist silently clears password and email gates.

### Registering without a key

If you don't have an API key yet, the `prismism_register` tool can create an account:

```
"Register me on Prismism with my email"
```

It returns the API key once — the agent will help you save it to your config.

## Environment Variables

| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| `PRISMISM_API_KEY` | For most tools | — | Your Prismism API key |
| `PRISMISM_BASE_URL` | No | `https://prismism.dev` | API base URL |

## Response Format

All tools return a consistent JSON envelope:

```json
{
  "ok": true,
  "data": { ... },
  "_hints": ["Actionable guidance for the agent"]
}
```

On error:

```json
{
  "ok": false,
  "error": { "code": "STORAGE_LIMIT", "message": "..." },
  "_hints": ["Upgrade at https://prismism.dev/settings/billing"]
}
```

## Requirements

- **Hosted endpoint**: No requirements — works with any MCP client
- **Local (stdio)**: Node.js 18+, npm or npx

## License

MIT

## Links

- [Prismism](https://prismism.dev) — Shareable links for any file
- [API Documentation](https://prismism.dev/docs)
- [OpenAPI Spec](https://prismism.dev/openapi.yaml)

TDQS

A4/5.0

Scored across 8 tools

Disambiguation5/5

Each tool has a distinct purpose with no overlap: account management, artifact deletion, retrieval, health check, listing, publishing, registration, and updating. The descriptions clearly differentiate their functions, eliminating any ambiguity.

Naming Consistency5/5

All tools follow a consistent 'prismism_verb' pattern (e.g., prismism_get, prismism_publish), using snake_case throughout. This predictability makes it easy for agents to understand and select tools.

Tool Count5/5

With 8 tools, the set is well-scoped for artifact management, covering core operations like CRUD, listing, account setup, and health checks. Each tool serves a clear purpose without redundancy or bloat.

Completeness5/5

The toolset provides complete lifecycle coverage for artifact management: create (publish/register), read (get/list/account), update, and delete, plus health and setup tools. There are no obvious gaps, enabling smooth agent workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues