# AI assistants on your server

> Choose who can connect an AI assistant, what assistants can do, and end any connection.

Page: https://songstress.app/docs/admin/mcp/

Songstress has its own MCP server, so the people on your server can connect an AI assistant, like Claude or
ChatGPT, to their own music. Everything here is on the **MCP** page (**Manage ▸ MCP**), where you connect your own
assistants and make your tokens too. For what members do, see
[AI assistants](/docs/apps/ai-assistants/).

## Choose who can use them [#choose-who-can-use-them]

Under **Who can use AI assistants**, choose one:

- **Off:** nobody. Assistants already connected stop working until you turn this on again, and their connections
  stay.
- **Admins only:** just this server's admins. This is where a new server starts.
- **Chosen members:** admins, and the members you tick.
- **Everyone:** every member, each with their own music.

A change applies at once, on the assistant's next request. A blocked member can never use an assistant.

## Choose what assistants can do [#choose-what-assistants-can-do]

Under **What assistants can do**, turn a group off for everyone on the server:

- **Play, pause and skip**
- **Change playlists, likes and ratings**
- **Add music to the library, import playlists and follow artists**: with it off, no assistant can add songs,
  albums or artists, import a playlist or follow an artist. It can still look up what was asked for.

Looking things up is always on: every assistant needs it. Each person can allow less when they connect one.

## Give people the address [#give-people-the-address]

**The address** is what a member pastes into their assistant. It ends in `/mcp`.

Claude and ChatGPT connect from their own computers on the internet, so they need a public `https://` address on
port 443. Set it as your server's **Public URL** in **Manage ▸ Server ▸ Access**. See
[Reach your server from anywhere](/docs/admin/addresses/). On your own network, members can use your server's
home address with Claude Code.

## Help someone connect [#help-someone-connect]

**Connect an assistant** has the same steps and settings members see, for each assistant, with this server's
address in them. Use it to set up your own, or to help a member. See
[Connect your assistant](/docs/apps/ai-assistants/#connect-your-assistant).

## See and end connections [#see-and-end-connections]

**Connected** lists every assistant signed in, and every personal token on the server, with whose it is and when it
was last used. Disconnect an assistant or revoke a token to end it at once. The member's **Activity** says an admin
ended it.

## Security and privacy [#security-and-privacy]

- Assistants sign in with OAuth 2.1. Before anything is shared, the member sees a Songstress page with the
  assistant's name and where it will send them back, like "When you answer, you go back to claude.ai". An app can
  call itself anything, but it can't fake that address.
- Every sign-in uses PKCE. Tokens are random, stored only as a hash, limited to what the member allowed, and they
  expire: an hour for an assistant's access, renewed while it's in use, and 30 days to a year for a personal token.
  A stolen refresh token used twice ends the whole connection.
- An assistant acts only as its member, through the same rules as the app: their own playlists and devices, never
  another member's private data, not even for an admin's assistant.
- Nothing about anyone's music leaves the server except what an assistant asks for. The assistant's provider, like
  Anthropic or OpenAI, handles what it receives under its own terms.

## If members can't connect [#if-members-cant-connect]

- **Claude or ChatGPT can't connect.** The address must be a public `https://` one on port 443. Open
  `https://your-address/.well-known/oauth-protected-resource/mcp` on a phone using mobile data: you should see a
  short JSON answer.
- **A member sees "Your server's admin controls whether you can use AI assistants".** Allow them under **Who can use
  AI assistants**.
- **"Too many registrations from this address".** An assistant registers itself the first time it connects, and the
  server takes 20 an hour from one address. Behind a reverse proxy, every request seems to come from the proxy, so
  all assistants share those 20. Set the proxy's client address header as trusted in PocketBase's own settings: its
  dashboard, **Application**, **User IP proxy headers**.
