MCP Servers

Overview

MCP servers give Claude Code extra capabilities during sessions — like accessing databases, calling external APIs, or working with specialized tools. Configure them once in Open Poet, and they're automatically available in every session.

Configuring MCP Servers

Add MCP servers through the Open Poet UI or the API:

  1. Go to Settings > MCP Servers.
  2. Click Add Server.
  3. Provide the server configuration:
FieldDescription
nameDisplay name for the MCP server
commandExecutable command to start the server (e.g., npx, python)
argsJSON array of command arguments
envJSON object of environment variables to pass to the server process
enabledWhether the server is active
Example: Add a filesystem MCP server
curl -X POST http://localhost:8080/api/config/mcps \
  -H "Content-Type: application/json" \
  -d '{
    "name": "filesystem",
    "command": "npx",
    "args": ["-y", "@modelcontextprotocol/server-filesystem", "/home/user/projects"],
    "env": {},
    "enabled": true
  }'

Session Injection

When you start a Claude Code session, all enabled MCP servers are automatically loaded and available to the AI. No manual configuration is needed per session.

Open Poet also provides its own built-in tools (prefixed with openpoet_) that give the AI the ability to manage your projects, tasks, and skills during sessions.

Tool Policies

Control which MCP tools Claude Code can use through the tool policy system:

Policy Modes

ModeBehavior
allow_allAll tools are permitted. Only the denied list restricts specific tools.
deny_allNo tools by default. Only the allowed list permits specific tools.
customUses both allowed and denied lists for fine-grained control.

Policy Levels

If a project has no specific policy set, it inherits the global policy.

Context-Based Defaults

ContextDefault Policy
sessiondeny_all — full Claude Code sessions require explicit tool allowlisting
chatallow_all — AI chat panel allows all tools by default
httpallow_all — HTTP transport allows all tools by default

HTTP Transport (Advanced)

By default, MCP servers communicate with Claude Code automatically. If you need to expose MCP tools over HTTP for external integrations, start Open Poet with:

Enable HTTP MCP transport
openpoet -mcp-http

This makes MCP tools available at the /mcp endpoint. Most users will not need this.

Built-in MCP Tools

Open Poet injects its own MCP server with the openpoet_ prefix. These tools let the AI manage your projects during sessions:

ToolDescription
openpoet_list_skillsList available skills
openpoet_create_skillCreate a new skill
openpoet_update_skillUpdate an existing skill
openpoet_delete_skillDelete a skill
openpoet_list_projectsList all projects
openpoet_list_mcp_serversList MCP server configurations
openpoet_create_mcp_serverAdd a new MCP server
openpoet_update_mcp_serverUpdate MCP server config
openpoet_delete_mcp_serverRemove an MCP server
openpoet_update_settingsUpdate application settings
openpoet_sync_allSync config to all projects
openpoet_list_project_filesList files in a project
openpoet_read_project_fileRead a file from a project
openpoet_get_memory_docGet project memory document
openpoet_execute_toolExecute a tool from another MCP server