# Membervault — how to use (mcp.ai)

Connect your Membervault account and use 4 tools for online courses straight from your AI agent. Connect with your own API key. MemberVault is a Relationship Marketing Platform that allows users to host courses, memberships, and other digital products in one place.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_membervault?ms=1787296020000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `membervault_add_user`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/membervault`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/membervault/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/membervault/add/user` — Tool to add a user to a specified product. Use when enrolling a user into a course without duplication.
  - body: { email: string, course_id: integer, last_name?: string, first_name?: string }
- `POST https://api.mcp.ai/api/membervault/delete/user` — Tool to completely delete a user from the account, including all data, progress, and quiz answers (irreversible). Use when you need to permanently remove a user. Example: "Delete user with email user@
  - body: { email: string }
- `POST https://api.mcp.ai/api/membervault/get/courses` — Tool to retrieve all courses (products) in the MemberVault account. Use when you need to list available courses after setting up authentication.
- `POST https://api.mcp.ai/api/membervault/remove/user` — Tool to remove a user's access to a product (course). This simply removes access to the product without deleting the user from the account. Use when revoking course access.
  - body: { email: string, course_id: integer }

## Example prompts
- "What can I do in Membervault?"
- "Show me a summary of my Membervault account"

## More
- Page: https://mcp.ai/membervault
- Agent spec (llms.txt): https://mcp.ai/membervault/llms.txt
- Postman collection: https://mcp.ai/membervault/postman.json
