Connecting AI assistants to the self-managed server

Language: English

From version 5.2, the self-managed server includes the same MCP server as ActivityInfo.org. AI assistants connect to it at https://<your-server>/mcp, and each user signs in with their account on your server. The assistant sees only what that user can see.

The articles under AI Assistants describe how to connect each assistant to ActivityInfo.org. On a self-managed server, the steps are the same with two differences:

  • Use your server's domain wherever those articles say www.activityinfo.org.
  • The ActivityInfo.org connector listed in the Claude and ChatGPT directories only reaches ActivityInfo.org. Add your server as a custom connector instead, as described below.

In this article, activityinfo.example.org stands for your server's domain.

Before you begin

  • Your server runs version 5.2 or later.
  • Your server is reachable over HTTPS. The assistants connect from their providers' cloud, not from the user's computer. A server on a private network, behind a VPN or behind a firewall cannot be reached unless you allow the provider's IP addresses through your firewall or use the provider's MCP tunnel feature. See the provider's documentation for both options.
  • Users connect through the domain your server is configured for. The server announces its sign-in addresses under that domain only, so connecting through another name or an IP address fails.
  • The MCP server is enabled for each database you want to work with. It is off by default, including for databases created before the upgrade. See Enabling the MCP server for a database.
  • Read Using AI assistants with sensitive data before you connect a database that holds personal data.

Your server's addresses

Setting Value
MCP server URL https://activityinfo.example.org/mcp
Registration endpoint https://activityinfo.example.org/oauth/register
Authorization endpoint https://activityinfo.example.org/oauth/authorize
Token and refresh endpoint https://activityinfo.example.org/oauth/token
Discovery document https://activityinfo.example.org/.well-known/oauth-authorization-server

To check that your server is reachable and announces the right domain, open the discovery document in a browser. The issuer it shows must be https://activityinfo.example.org.

Claude

Add your server to Claude as a custom connector.

On a Free, Pro, Max or Ultra plan

  1. In Claude, open “Customize”, then “Connectors”.
  2. Click “Add”, then “Add custom connector”.
  3. Enter a name, such as ActivityInfo, and the MCP server URL https://activityinfo.example.org/mcp. Click “Continue”.
  4. Choose “Sign in now”, then click “Add”. If the connector shows “Connect”, click it.

On the Free plan, you can add one custom connector.

On a Team or Enterprise plan

An Owner or Primary Owner adds the connector once for the organization. On an Enterprise plan, a member whose custom role includes managing the organization's libraries can also add it.

  1. Open “Organization settings”, then “Connectors”.
  2. Click “Add”, then “Custom”. If Claude asks for the connector type, choose “Web”.
  3. Enter a name, such as ActivityInfo, and the MCP server URL https://activityinfo.example.org/mcp.

Each member then opens “Customize”, then “Connectors”, finds the connector and clicks “Connect”.

Sign in and confirm

Your server's sign-in page opens. Sign in, then follow Steps 3 and 4 of Connecting Claude to ActivityInfo: check that the authorization code goes to claude.ai, choose read-only or read and write access, and ask Claude to list your databases. The connector carries the name you gave it, not “ActivityInfo.org”.

ChatGPT

Add your server to ChatGPT as a custom MCP server.

  1. In ChatGPT on the web, open Plugins.
  2. Click “+”, then “Add custom MCP server”.
  3. Enter a name, such as ActivityInfo. Under “Connection”, enter the server URL https://activityinfo.example.org/mcp.
  4. Choose OAuth as the authentication.
  5. Confirm the warning about custom MCP servers, then create the plugin.

Your server's sign-in page opens. Sign in, then follow Steps 3 and 4 of Connecting ChatGPT to ActivityInfo: check that the authorization code goes to chatgpt.com, choose read-only or read and write access, and ask ChatGPT to list your databases.

Mistral

Follow Connecting Mistral to ActivityInfo, and enter https://activityinfo.example.org/mcp as the server URL. Mistral registers itself with your server.

Microsoft Copilot

Follow Connecting Microsoft Copilot to ActivityInfo and replace every ActivityInfo.org address with your server's:

Where Value
Step 1: registration request https://activityinfo.example.org/oauth/register
Step 2: Base URL https://activityinfo.example.org/mcp
Step 2: Authorization endpoint https://activityinfo.example.org/oauth/authorize
Step 2: Token endpoint and Refresh endpoint https://activityinfo.example.org/oauth/token
Step 3: Base URL https://activityinfo.example.org/mcp
Step 3: Website, Privacy Policy and Terms of use URLs Your organization's own pages

Gemini Enterprise

Follow Connecting Gemini Enterprise to ActivityInfo and replace every ActivityInfo.org address with your server's:

Where Value
Step 2: registration request https://activityinfo.example.org/oauth/register
Step 3: Server URL https://activityinfo.example.org/mcp
Step 3: Authorization URL https://activityinfo.example.org/oauth/authorize
Step 3: Token URL https://activityinfo.example.org/oauth/token

Troubleshooting

What you see Cause
The assistant cannot connect, and your server's sign-in page never opens The provider cannot reach your server, for example because a firewall blocks it. Check that you can open the discovery document from outside your network
The connection fails, and the issuer in the discovery document names a different domain from the one in your MCP server URL The address uses a domain other than the one your server is configured for, or an IP address. Use the configured domain in the MCP server URL
“The MCP server is not enabled for database …” Nobody has enabled the setting for that database. See Enabling the MCP server for a database
redirect_uri, PKCE or invalid_client errors See the Troubleshooting section of the article for that assistant
Next item
Google Translate configuration