Conatus MCP Server

Conatus MCP Server

Enables AI assistants to manage tasks, projects, sections, labels, comments, and reminders in a self-hosted Conatus task manager via the Model Context Protocol.

Category
访问服务器

README

Conatus MCP Server

Connect AI assistants to a self-hosted Conatus task manager through the Model Context Protocol.

The server exposes focused tools for projects, sections, tasks, labels, comments, and reminders. It talks to Conatus through its versioned HTTP API, never accesses the database directly, and intentionally provides no permanent-delete tool.

How it fits together

Codex, ChatGPT, Claude, or another MCP client
                    │
              MCP (stdio or HTTP)
                    │
             Conatus MCP server
                    │
          Conatus /api/v1 + API token
                    │
             Your Conatus instance

Every installation points the MCP server at the user's own Conatus address. That address can be local (http://localhost:3000), on a private network (http://192.168.1.50:3000), or hosted (https://tasks.example.com).

Requirements

  • Node.js 20 or newer
  • A reachable Conatus installation with the /api/v1 API
  • A scoped token created in Conatus → Settings → API tokens

Quick start: local MCP process

Local stdio mode is the recommended setup. The AI client starts the MCP process when needed; Conatus itself may be running locally or remotely.

The npm package has not been released yet. Until the first release, build this repository locally:

git clone https://github.com/nojusmorkunas/conatus-mcp.git
cd conatus-mcp
npm ci
npm run build

Then register it with Codex, replacing the URL and token:

codex mcp add conatus \
  --env TASKS_BASE_URL=https://tasks.example.com \
  --env TASKS_API_TOKEN=tdm_replace_me \
  -- node /absolute/path/to/conatus-mcp/dist/stdio.js

Restart Codex and verify the connection:

codex mcp list

After the package is published to npm, the command becomes:

codex mcp add conatus \
  --env TASKS_BASE_URL=https://tasks.example.com \
  --env TASKS_API_TOKEN=tdm_replace_me \
  -- npx -y conatus-mcp

For clients that use JSON configuration:

{
  "mcpServers": {
    "conatus": {
      "command": "npx",
      "args": ["-y", "conatus-mcp"],
      "env": {
        "TASKS_BASE_URL": "https://tasks.example.com",
        "TASKS_API_TOKEN": "tdm_replace_me"
      }
    }
  }
}

Do not append /api/v1 to TASKS_BASE_URL; the MCP server adds the API path itself.

Hosted MCP endpoint

Use Streamable HTTP mode when clients need to connect to a shared URL such as https://mcp.example.com/mcp. The gateway keeps the Conatus API token server-side and gives each AI client a separate OAuth session.

TASKS_BASE_URL=https://tasks.example.com \
TASKS_API_TOKEN=tdm_replace_me \
MCP_HOST=0.0.0.0 \
MCP_PORT=3001 \
MCP_PUBLIC_URL=https://mcp.example.com/mcp \
MCP_OAUTH_PASSWORD='use-a-long-separate-approval-password' \
MCP_OAUTH_STORE_PATH=./data/oauth-store.json \
MCP_ALLOWED_ORIGINS=https://your-ai-host.example \
npm run start:http

Give clients only https://mcp.example.com/mcp. Compatible clients discover the OAuth endpoints, dynamically register, open the browser approval page, and complete an authorization-code flow with S256 PKCE. Enter MCP_OAUTH_PASSWORD on the approval page.

Production deployments must put TLS and a reverse proxy in front of port 3001. MCP_PUBLIC_URL must be the exact public HTTPS endpoint ending in /mcp. Only the reverse proxy should expose the MCP port.

Docker

docker build -t conatus-mcp .
docker run --rm -p 127.0.0.1:3001:3001 \
  -v conatus-mcp-oauth:/data \
  -e TASKS_BASE_URL=https://tasks.example.com \
  -e TASKS_API_TOKEN=tdm_replace_me \
  -e MCP_HOST=0.0.0.0 \
  -e MCP_PUBLIC_URL=https://mcp.example.com/mcp \
  -e MCP_OAUTH_PASSWORD='use-a-long-separate-approval-password' \
  -e MCP_OAUTH_STORE_PATH=/data/oauth-store.json \
  conatus-mcp

Static bearer fallback

If a client cannot use OAuth, omit MCP_PUBLIC_URL and MCP_OAUTH_PASSWORD, then configure a long random MCP_BEARER_TOKEN. Send that value as a bearer token when connecting to /mcp.

Binding to a non-loopback address without complete OAuth configuration or MCP_BEARER_TOKEN is rejected.

Configuration

Variable Required Default Purpose
TASKS_BASE_URL Always — Conatus origin, without /api/v1
TASKS_API_TOKEN Always — Scoped tdm_ token, or legacy tdc_ token
TASKS_REQUEST_TIMEOUT_MS No 15000 Upstream API timeout
MCP_HOST HTTP only 127.0.0.1 HTTP bind address
MCP_PORT HTTP only 3001 HTTP port
MCP_ALLOWED_ORIGINS No Conatus origin Comma-separated browser origins
MCP_PUBLIC_URL OAuth mode — Exact public HTTPS MCP URL ending in /mcp
MCP_OAUTH_PASSWORD OAuth mode — Separate approval password of at least 16 bytes
MCP_OAUTH_STORE_PATH No ./data/oauth-store.json Persistent OAuth registrations and token hashes
MCP_BEARER_TOKEN Bearer mode — Static credential used by HTTP clients

Available tools

  • Workspace: get_workspace_context
  • Projects: list_projects, get_project, create_project, update_project
  • Sections: create_section, update_section
  • Tasks: list_tasks, get_task, create_task, quick_add_task, update_task, move_task, complete_task, reopen_task, set_task_labels
  • Labels: list_labels, create_label
  • Collaboration: add_comment
  • Scheduling: set_reminder

Create operations use idempotency keys so retries do not create duplicates. Tool responses return task and comment content as structured user data, not agent instructions.

Available resources

  • taskapp://workspace
  • taskapp://views/today
  • taskapp://views/upcoming
  • taskapp://projects/{id}
  • taskapp://tasks/{id}

Security

  • Treat TASKS_API_TOKEN, MCP_OAUTH_PASSWORD, and MCP_BEARER_TOKEN as secrets.
  • Never commit secrets, paste them into prompts, or include them in tool arguments.
  • Grant the Conatus API token only the scopes the client needs.
  • Use HTTPS for every non-local Conatus or MCP endpoint.
  • Revoke or rotate the Conatus API token if the gateway is compromised.
  • To revoke every OAuth client, stop the gateway, remove its OAuth store, and restart it.

OAuth access tokens last one hour and rotating refresh tokens last 30 days. Registrations and token hashes are stored with mode 0600; raw OAuth tokens and the approval password are not stored. Run one MCP replica per JSON store file.

Development

npm ci
npm test
npm run lint
npm run build
npm pack --dry-run

Run the stdio server during development:

TASKS_BASE_URL=http://localhost:3000 \
TASKS_API_TOKEN=tdm_replace_me \
npm run dev

Test the built server with MCP Inspector:

TASKS_BASE_URL=http://localhost:3000 \
TASKS_API_TOKEN=tdm_replace_me \
npx @modelcontextprotocol/inspector node dist/stdio.js

Publishing

Publish the self-contained package to npm as conatus-mcp:

npm publish

Publishing automatically runs the test, lint, and build checks through prepublishOnly.

License

GNU Affero General Public License v3.0

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选