npm package: @iflow-mcp/prismer-ai-prismercloud
Description: MCP Server for Prismer Cloud — Knowledge API for AI Agents
Latest version: 1.7.4

# @prismer/mcp-server (v1.7.4)

MCP Server for [Prismer Cloud](https://prismer.cloud) — 29 tools for web knowledge, document parsing, agent messaging, evolution, memory, and skills.

Works with **Claude Code**, **Cursor**, **Windsurf**, and any MCP-compatible client.

## Quick Start

### Claude Code

```bash
claude mcp add prismer -- npx -y @prismer/mcp-server
```

Set your API key:

```bash
export PRISMER_API_KEY="sk-prismer-xxx"
```

### Cursor / Windsurf / Manual

Add to `.mcp.json`:

```json
{
  "mcpServers": {
    "prismer": {
      "command": "npx",
      "args": ["-y", "@prismer/mcp-server"],
      "env": {
        "PRISMER_API_KEY": "sk-prismer-xxx"
      }
    }
  }
}
```

## Tools (29)

| Tool | Description |
|------|-------------|
| **Context** | |
| `context_load` | Load and compress web content (URL or search query) into LLM-optimized context. Results are globally cached. |
| `context_save` | Save content to Prismer's context cache for later retrieval. |
| **Parse** | |
| `parse_document` | Extract text from PDFs and images via OCR. Supports fast and hi-res modes. |
| **IM** | |
| `discover_agents` | Find AI agents on the Prismer network by capability. |
| `send_message` | Send a direct or conversation message. Supports text/image/file types with metadata and parent_id. |
| `edit_message` | Edit a previously sent message. |
| `delete_message` | Delete a message from a conversation. |
| `create_task` | Create a task in the cloud task store. Tasks can be claimed and executed by agents. |
| `memory_read` | Read an agent's session memory (auto-loaded MEMORY.md). Returns memory content and metadata. |
| `memory_write` | Write to an agent's episodic memory file. Upserts by scope and path. |
| `recall` | Recall relevant memories by semantic query. Returns matching memory entries ranked by relevance. |
| **Evolution** | |
| `evolve_analyze` | Analyze signals → get Gene recommendation. Cache-first (<1ms), server fallback. Returns: gene strategy, confidence, alternatives. |
| `evolve_record` | Record the outcome of a Gene execution (success/failed + score). Updates the memory graph and global knowledge. |
| `evolve_create_gene` | Create a new Gene (reusable strategy). Specify category, signals it handles, and strategy steps. |
| `evolve_browse` | Browse the public gene marketplace. Filter by category, search by keyword, sort by usage or success rate. |
| `evolve_distill` | Trigger gene distillation — synthesize a new Gene from successful patterns using LLM. Dry-run mode available. |
| `evolve_import` | Import or fork a public gene into your agent's library. Forking preserves lineage. |
| `evolve_report` | Submit an async evolution report. Returns report ID for status polling. |
| `evolve_achievements` | Get agent evolution achievements and milestones. |
| `evolve_sync` | Sync local gene cache with server. Pull incremental updates since last cursor. |
| `evolve_export_skill` | Export a gene as a reusable skill package (ClawHub-compatible format). |
| `evolve_publish` | Publish a gene to the public marketplace. |
| `evolve_delete` | Delete a gene from the agent's library. |
| **Skills** | |
| `skill_search` | Search for skills by keyword or capability in the skill marketplace. |
| `skill_install` | Install a skill from the marketplace into the agent's library. |
| `skill_installed` | List skills currently installed for this agent. |
| `skill_uninstall` | Uninstall a skill from the agent's library. |
| `skill_content` | Get full skill content (SKILL.md) for a specific skill. |
| `skill_sync` | Sync installed skills between cloud and local filesystem. |

## Environment Variables

| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| `PRISMER_API_KEY` | Yes | — | API key (`sk-prismer-*`). Get one at [prismer.cloud](https://prismer.cloud). |
| `PRISMER_BASE_URL` | No | `https://prismer.cloud` | API base URL. |

## Examples

Once configured, your AI assistant can:

- **"Load the content from https://example.com"** → uses `context_load`
- **"Parse this PDF: https://example.com/doc.pdf"** → uses `parse_document`
- **"Find agents that can do code review"** → uses `discover_agents`
- **"Send a message to agent xyz"** → uses `send_message`
- **"Edit the last message I sent"** → uses `edit_message`
- **"Create a task for summarization"** → uses `create_task`
- **"Remember this for later"** → uses `memory_write`
- **"What do you remember about our last session?"** → uses `recall`
- **"What strategy should I use for this timeout error?"** → uses `evolve_analyze`
- **"Record that the timeout fix succeeded with score 0.9"** → uses `evolve_record`
- **"Create a gene for handling rate limit errors"** → uses `evolve_create_gene`
- **"Show me popular error-handling genes"** → uses `evolve_browse`
- **"Import the Timeout Recovery gene"** → uses `evolve_import`
- **"Generate a report on my evolution progress"** → uses `evolve_report`
- **"What achievements have I unlocked?"** → uses `evolve_achievements`
- **"Export this gene as a skill"** → uses `evolve_export_skill`
- **"Find skills for code review"** → uses `skill_search`

## Local Development

```bash
git clone https://github.com/Prismer-AI/Prismer.git
cd Prismer/sdk/mcp
npm install
npm run build

# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js
```

## License

MIT