db4app Todo MCP Server

db4app Todo MCP Server

Enables LLMs to manage a todo list application through the Model Context Protocol, connecting directly to a browser-based Postgres database to add, list, complete, and remove todo items with categories, priorities, and due dates.

Category
访问服务器

README

db4app-todo-mcp-server

MCP server for db4.app todo list app - enables LLMs to manage todos via Model Context Protocol using the Postgres TCP protocol.

Installation

npm install -g db4app-todo-mcp-server

Or use with npx (no installation needed):

npx db4app-todo-mcp-server

Usage

Important: This MCP server uses the Postgres TCP protocol to connect directly to your browser database, just like psql or other Postgres clients. It uses TLS encryption and password authentication.

With LM Studio

  1. Locate your mcp.json file:

    • macOS: ~/Library/Application Support/LM Studio/mcp.json
    • Windows: %APPDATA%\LM Studio\mcp.json
    • Linux: ~/.config/LM Studio/mcp.json
  2. Get your Connection ID and Auth Token:

    • Open the Database page in your browser
    • Your Connection ID is displayed in the Connection Info section
    • Your Auth Token is also shown in the Connection Info section (this is your password)
  3. Install the todo-mcp app from the Community Apps page in db4.app

  4. Add this to the mcpServers object in your mcp.json:

{
  "mcpServers": {
    "db4app-todo": {
      "command": "npx",
      "args": [
        "-y",
        "db4app-todo-mcp-server@latest"
      ],
      "env": {
        "MCP_POSTGRES_URL": "postgres://postgres:YOUR_AUTH_TOKEN@YOUR_CONNECTION_ID.pg.db4.app",
        "MCP_SCHEMA": "todo_mcp"
      }
    }
  }
}

Important Notes:

  • Replace YOUR_AUTH_TOKEN with your actual auth token from step 2
  • Replace YOUR_CONNECTION_ID with your Connection ID from step 2
  • The connection string format is: postgres://postgres:AUTH_TOKEN@CONNECTION_ID.pg.db4.app
  • Each browser tab has its own unique Connection ID and Auth Token - make sure you use the correct ones
  • Postgres TCP Protocol: The MCP server uses the standard Postgres wire protocol with TLS encryption, just like psql or DBeaver
  1. Restart LM Studio to load the new MCP server configuration.

With Claude Desktop

  1. Locate your Claude Desktop config:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  2. Add the same configuration as above to the mcpServers object.

  3. Restart Claude Desktop.

Available Tools

add_todo

Add a new todo item to the list.

Parameters:

  • title (required): The title of the todo item
  • description (optional): Additional details
  • category (optional): Category name (e.g., "Work", "Personal", "Shopping")
  • priority (optional): Priority level (0=normal, 1=high, 2=urgent, default: 0)
  • due_date (optional): Due date in ISO format (e.g., "2024-12-31T23:59:59Z")

Example usage:

"Add a todo to finish the project report by end of month, high priority, in the Work category"

mark_as_done

Mark a todo item as completed.

Parameters:

  • todo_id (required): The ID of the todo to mark as done

Example usage:

"Mark todo #5 as done"
"Complete the todo about finishing the report"

list_todos

List all todos with optional filters.

Parameters:

  • show_completed (optional): Show completed todos (default: true)
  • category (optional): Filter by category name
  • priority (optional): Filter by priority level (0, 1, or 2)

Example usage:

"Show me all my pending todos"
"List all high priority todos in the Work category"
"What todos do I have due today?"

remove_todo

Delete a todo item.

Parameters:

  • todo_id (required): The ID of the todo to remove

Example usage:

"Delete todo #3"
"Remove the todo about buying groceries"

Environment Variables

  • MCP_POSTGRES_URL: Postgres connection URL (format: postgres://postgres:AUTH_TOKEN@CONNECTION_ID.pg.db4.app)
  • MCP_SCHEMA: Schema name for todo tables (default: todo_mcp)
  • MCP_CONNECTION_ID: Browser connection ID (alternative to full URL)
  • MCP_AUTH_TOKEN: Auth token for authentication (alternative to full URL)

Troubleshooting

Connection Issues

  • Postgres TCP Protocol: The MCP server uses the standard Postgres wire protocol with TLS encryption, just like psql or DBeaver
  • Connection String Format: postgres://postgres:AUTH_TOKEN@CONNECTION_ID.pg.db4.app
  • Auth Token Required: You must provide the auth token in the connection string (it's your password)
  • TLS Encryption: Connections are automatically encrypted using TLS (no additional configuration needed)

Password Authentication Failed

If you see FATAL: Password authentication failed:

  1. Get your Auth Token: Open the Database page → Connection Info section
  2. Use the exact token: Copy the token and use it in your connection string
  3. Token persistence: The token is auto-generated and stored in your browser's localStorage
  4. Single error message: You should see only ONE error message. If you see multiple errors, please report it as a bug.

Schema Not Found

If you see errors about the schema not existing:

  1. Install the app: Make sure you've installed the "Todo List with MCP" app from the Community Apps page
  2. Check schema name: Verify MCP_SCHEMA matches the schema name (default: todo_mcp)
  3. Verify installation: Run SELECT schema_name FROM information_schema.schemata WHERE schema_name = 'todo_mcp'; to confirm the schema exists

License

MIT

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选