# The Plurality MCP Server

> **TL;DR** The Plurality MCP Server exposes your memory buckets to any AI agent that speaks the Model Context Protocol. Connect once per tool, authenticate (via OAuth or a personal access token), and your context flows automatically (in both directions).

### What is MCP?

The [Model Context Protocol](https://modelcontextprotocol.io) is an open standard, originally developed by Anthropic, for connecting AI models to external data and tools. Think of it as a universal adapter: any agent that speaks MCP can talk to any data source that speaks MCP, without custom integration work on either side.

MCP support is now standard across the agent ecosystem. Claude Desktop, Claude Code, Cursor, Windsurf, GitHub Copilot, LM Studio, Lovable, Replit, ChatGPT (via custom connectors), OpenClaw, and many others speak it natively.

### What the Plurality MCP Server does

The Plurality MCP Server is the bridge between your memory buckets and the AI tools you use. It runs at:

```
https://app.plurality.network/mcp
```

When an AI agent connects to this URL, it gains **read and write access** to your Plurality memory layer — your documents, notes, conversations, and files stored across memory buckets — bounded by the permissions you set.

The server is the *only* component that talks to outside agents. Your memory buckets never leave your control; the MCP Server retrieves only what an agent is permitted to see, in the moment it's requested.

### How it fits

```
   ┌──────────────────────────────────────┐
   │  Your AI agent (Claude, Cursor, ...) │
   └─────────────────┬────────────────────┘
                     │  MCP request
                     ▼
   ┌──────────────────────────────────────┐
   │  Plurality MCP Server                │
   │  ─ verifies authentication           │
   │  ─ checks permissions                │
   │  ─ fetches/writes context            │
   └─────────────────┬────────────────────┘
                     │
                     ▼
   ┌──────────────────────────────────────┐
   │  Your memory buckets                 │
   └──────────────────────────────────────┘
```

### What's exposed

The Plurality MCP Server exposes the following tools to connected agents:

| Tool                          | Description                                            |
| ----------------------------- | ------------------------------------------------------ |
| `get_user_memory_buckets`     | List all memory buckets for the user                   |
| `list_items_in_memory_bucket` | List stored items in a specific bucket (metadata only) |
| `search_memory`               | Semantic search across buckets with relevance scoring  |
| `read_context`                | Read the full content of a stored item (paginated)     |
| `save_memory`                 | Save text content to a specific memory bucket          |
| `save_conversation`           | Save a conversation (chat history) to a memory bucket  |
| `create_memory_bucket`        | Create a new memory bucket                             |

Connected agents can **read** your context and **write** new context back to your buckets. For example, context saved from Cursor is immediately available in Claude or ChatGPT, with no manual syncing.

### Authentication

The Plurality MCP Server supports two authentication methods. Most users will use OAuth; API keys are available for advanced and programmatic use cases.

#### OAuth 2.1 (default)

OAuth is the recommended option for connecting interactive AI tools like Claude Desktop, ChatGPT, Cursor, Windsurf, GitHub Copilot, Lovable, Replit, LM Studio, OpenClaw, and others.

When you connect a tool, it opens a browser window and redirects you to Plurality's login flow. After you authenticate, the tool receives an access token scoped to your account. The tool stores this token locally; Plurality never sees the tool's session.

**Why use it:**

* No credentials to copy or paste
* Standard flow supported natively by every major MCP client

The Plurality MCP Server implements OAuth 2.1 with **Dynamic Client Registration (DCR)**, which is what allows any compliant MCP client to connect without prior coordination.

#### Personal Access Token (API key)

For environments where OAuth is impractical —  self-hosted agents, headless deployments, scripts — the Plurality MCP Server also accepts personal access tokens.

**To use a PAT:**

1. Generate a token in your Plurality dashboard under \
   \&#xNAN;**`Connect via MCP → Manage MCP Tokens → Create Token`**.

<figure><img src="/files/cxAM1gNa9i47nOsZqlFW" alt=""><figcaption></figcaption></figure>

1. When you click on Create Token, you need to give your token a name and set its expiry. Copy the PAT that gets generated (we show it only once)
2. In your MCP client's configuration, add an `Authorization` header:

```
Authorization: Bearer plur_pat_xxx
```

**Why use it:**

* Works in environments without a browser
* Easy to scope to specific buckets or operations
* Can be set per-environment (different tokens for dev/staging/prod)

**Treat PATs like passwords:** never commit them to source control, and rotate them when team members leave or you need to disallow a certain agent to access your memory buckets.

### Permissions and security

Three things to know:

1. **Per-agent permissions.** Each connected agent has its own access scope. Granting Claude Desktop access to your *Work* bucket doesn't grant any other tool access to it.
2. **Per-bucket permissions.** Buckets are independent units. An agent permitted on one is not automatically permitted on others.
3. **Shared Buckets:** If someone shared their buckets with you but only "Viewer" access, then you will not be able to add any information to that bucket (with or without MCP).
4. **Revocation is instant.** Pull permission in your Plurality dashboard and the agent loses access on its next request.

Tokens (both OAuth and PAT) are cached locally by the client. Plurality never receives, stores, or sees the credentials of the AI tools you connect.

### Next Steps

Check out guides for individual tools and the different MCP setups in the next section.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.plurality.network/the-plurality-mcp-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
