Molecule AI

MCP Server

Manage Molecule AI workspaces from any MCP-compatible AI agent using 87 tools.

The Molecule AI MCP server lets any MCP-compatible AI agent (Claude Code, Cursor, etc.) manage workspaces, agents, secrets, memory, schedules, channels, and more through the platform API.

Quick start

Install

npx @molecule-ai/mcp-server@1.0.0

Configure in .mcp.json

{
  "mcpServers": {
    "molecule": {
      "type": "stdio",
      "command": "npx",
      "args": ["@molecule-ai/mcp-server@1.0.0"],
      "env": {
        "MOLECULE_URL": "http://localhost:8080"
      }
    }
  }
}

Pin the package version. The examples above use @1.0.0 — always specify an exact version and omit the -y flag. An unpinned npx -y @molecule-ai/mcp-server (no version) silently installs whatever npm serves on the next restart; if the package is ever compromised, it runs with your full MCP client permissions. Check npm for the latest stable release before upgrading.

For SaaS deployments, set MOLECULE_URL to your tenant URL:

"MOLECULE_URL": "https://your-org.moleculesai.app"

Verify

Once configured, your MCP client should show 87 Molecule AI tools. Test with:

list_workspaces

Tool categories

The MCP server exposes tools across these categories:

Workspace management

ToolAPI RouteDescription
list_workspacesGET /workspacesList all workspaces
create_workspacePOST /workspacesCreate a new workspace
get_workspaceGET /workspaces/:idGet workspace details
update_workspacePATCH /workspaces/:idUpdate workspace fields
delete_workspaceDELETE /workspaces/:idDelete a workspace
restart_workspacePOST /workspaces/:id/restartRestart container
pause_workspacePOST /workspaces/:id/pausePause workspace
resume_workspacePOST /workspaces/:id/resumeResume paused workspace

Communication

ToolAPI RouteDescription
chat_with_agentPOST /workspaces/:id/a2aSend A2A message
async_delegatePOST /workspaces/:id/delegateFire-and-forget delegation
check_delegationsGET /workspaces/:id/delegationsCheck delegation status
list_peersGET /registry/:id/peersFind peer workspaces
notify_userPOST /workspaces/:id/notifyPush notification to canvas

Configuration and secrets

ToolAPI RouteDescription
get_configGET /workspaces/:id/configGet config.yaml
update_configPATCH /workspaces/:id/configUpdate config
list_secretsGET /workspaces/:id/secretsList secret keys
set_secretPOST /workspaces/:id/secretsSet a secret
set_global_secretPUT /settings/secretsSet a global secret

Memory

ToolAPI RouteDescription
memory_listGET /workspaces/:id/memoryList memory keys
memory_getGET /workspaces/:id/memory/:keyGet value
memory_setPOST /workspaces/:id/memorySet key-value
search_memoryGET /workspaces/:id/memoriesFull-text search

Files

ToolAPI RouteDescription
list_filesGET /workspaces/:id/filesList workspace files
read_fileGET /workspaces/:id/files/*pathRead file content
write_filePUT /workspaces/:id/files/*pathWrite file
replace_all_filesPUT /workspaces/:id/filesReplace all files

Schedules

ToolAPI RouteDescription
list_schedulesGET /workspaces/:id/schedulesList cron schedules
create_schedulePOST /workspaces/:id/schedulesCreate schedule
run_schedulePOST /workspaces/:id/schedules/:id/runTrigger now

Channels

ToolAPI RouteDescription
list_channelsGET /workspaces/:id/channelsList channels
add_channelPOST /workspaces/:id/channelsAdd Telegram/Slack/Lark
test_channelPOST /workspaces/:id/channels/:id/testTest connectivity
send_channel_messagePOST /workspaces/:id/channels/:id/sendSend message

Plugins

ToolAPI RouteDescription
list_installed_pluginsGET /workspaces/:id/pluginsList installed
install_pluginPOST /workspaces/:id/pluginsInstall from source
uninstall_pluginDELETE /workspaces/:id/plugins/:nameUninstall

Tokens

ToolAPI RouteDescription
list_tokensGET /workspaces/:id/tokensList workspace tokens
create_tokenPOST /workspaces/:id/tokensCreate bearer token
revoke_tokenDELETE /workspaces/:id/tokens/:idRevoke token

Templates and bundles

ToolAPI RouteDescription
list_templatesGET /templatesAvailable templates
import_orgPOST /org/importImport org template
export_bundleGET /bundles/export/:idExport workspace
import_bundlePOST /bundles/importImport workspace

Environment variables

VariableDefaultDescription
MOLECULE_URLhttp://localhost:8080Platform API URL

Troubleshooting

IssueFix
Connection refusedCheck MOLECULE_URL points to running platform
401 UnauthorizedToken expired or revoked — create a new one
Tools not showingRun npx @molecule-ai/mcp-server@1.0.0 standalone to check errors

On this page