{% extends "base.html" %} {% block title %}MCP connections - Memorizz{% endblock %} {% block head %} {% endblock %} {% block content %} {% from '_ui.html' import page_header, empty_state %} {% set t = monitor.totals %} {% set window_label = 'last ' ~ monitor.window_days ~ ' days' %} {% call page_header('MCP connections', 'Connect agents to Notion, Gmail, Google Calendar or any server in the MCP Registry, or expose MemoRizz memory and agents to other MCP clients.', 'Integrations', actions_class='mcp-header-actions') %} {% if agents %}
{% endif %} {% if selected_agent_id %}{% endif %} {% endcall %} {% if created_template %}
Created {{ created_template.persona.name }}. Sign in to each connection below: select it, then Authorize. Gmail and Google Calendar need a Google OAuth client; if you skipped it, select Edit to add the client ID and secret first. Then chat with it in the playground.
{% endif %} {% if oauth_result %} {% set oauth_target = oauth_server or 'this server' %} {% if oauth_result == 'success' %}
Authorized {{ oauth_target }}. Select Test to verify the connection.
{% elif oauth_result == 'pending' %}
Authorization for {{ oauth_target }} is still pending. Select Test to check the connection.
{% elif oauth_result == 'error' %}
Authorization for {{ oauth_target }} failed. Check the OAuth client ID, client secret and redirect URI, then select Authorize to try again.
{% else %}
OAuth {{ oauth_result }} for {{ oauth_target }}. Select Test to verify the connection.
{% endif %} {% endif %} {% macro editor_panel() %}
Add MCP connection{% if servers %}Add a server, or edit one from its detail pane{% else %}Streamable HTTP, SSE or stdio{% endif %}
Start from {% for preset in presets %} {% endfor %}
Values are moved into the encrypted credential store.
Leave blank when editing to retain the existing token.
Required for Gmail and Google Calendar; Notion can register dynamically.
Header values are encrypted and never stored in agent memory.
Overrides conservative name classification.
Always requires durable approval when approval policy is enabled.
{% endmacro %} {% macro catalog_panel(open=false) %}
Find a serverOfficial connectors and the MCP Registry
{% endmacro %} {% macro expose_panel() %}

Expose MemoRizz as an MCP server

Server credentials are process-level deployment secrets. Configure them in the CLI or your platform's secret manager; this browser never stores them.

Local MCP host

Add this server definition to Claude Desktop, Codex or another MCP host.

{
  "mcpServers": {
    "memorizz": {
      "command": "memorizz",
      "args": ["mcp", "serve"]
    }
  }
}

Authenticated remote server

Remote mode is read-only by default. Use a long random bearer token and serve it behind an HTTPS reverse proxy.

export MEMORIZZ_MCP_SERVER_API_KEYS='{"client":"replace-with-a-long-random-token"}'
memorizz mcp serve --transport streamable-http --host 0.0.0.0 --public-url https://memory.example.com{% if selected_agent_id %} --agent-id {{ selected_agent_id }}{% endif %}
Deployment guide
{% endmacro %} {% if not selected_agent_id %} {{ empty_state('No agents yet', 'MCP connections belong to an agent. Create an agent, then return here to connect it to MCP servers.', '/agents/new', 'Create agent') }} {{ expose_panel() }} {% elif not servers %}
No MCP servers connected to this agent

Attach an official connector or search the MCP Registry below, or use Add connection for any Streamable HTTP, SSE or stdio server.{% if t.agents_with_mcp %} {{ t.agents_with_mcp }} of {{ t.agents }} agents already use MCP; pick one above to see its servers.{% endif %}

{{ catalog_panel(open=true) }} {{ editor_panel() }} {{ expose_panel() }} {% else %}
Servers{{ t.servers }}
Ready{{ t.ready }}
Needs sign-in{{ t.needs_auth }}
Failing{{ t.failing }}
Tools exposed{% if t.tools is none %}—{% else %}{{ t.tools }}{% if t.tools_known < t.servers %}{{ t.tools_known }}/{{ t.servers }} listed{% endif %}{% endif %}
Tool calls, 7d{{ t.calls }}{% if t.failed_calls %}{{ t.failed_calls }} failed{% endif %}
Errors, 7d{{ t.errors }}
Agents using MCP{{ t.agents_with_mcp }}of {{ t.agents }}
Last check{{ relative_time(t.last_check, generated_at) if t.last_check else 'Never' }}
{% if t.disabled %}{% endif %}

j k movet test↵ toolse edit

{% for row in monitor.rows %} {% endfor %}
MCP servers connected to this agent, worst status first. Select a row to see its tools, errors and configuration.
Transport Auth Endpoint
{{ row.name }} {{ row.transport_label }} {{ row.auth_label }} {{ row.state_label }} {{ row.tool_count if row.tool_count is not none else '—' }} {{ row.calls }}{% if row.failed_calls %} ({{ row.failed_calls }}){% endif %} {% if row.error_count %}{{ row.error_count }}{% else %}0{% endif %} {{ relative_time(row.last_check, generated_at) if row.last_check else 'Never' }} {{ row.endpoint or '—' }}
{{ catalog_panel() }} {{ editor_panel() }} {{ expose_panel() }}
{% endif %} {% endblock %} {% block scripts %} {% endblock %}