Skip to main content
Glama

DevLog MCP

This is a stdio MCP server that publishes development logs written by AI coding agents like Codex and Claude Code to an existing Notion Blog Database. The agent is responsible for reflections and writing the content, while this server handles input validation and storage to Notion.

Requirements

  • Node.js 20 or higher

  • Existing Notion Blog Database

  • Notion Integration connected to the Database

Related MCP server: Notion MCP Server

Installation and Build

npm install
npm test
npm run build

When running directly during development, set the environment variables in the current shell. This project does not automatically read a .env file.

export NOTION_TOKEN="secret_..."
export NOTION_DATABASE_ID="..."
npm run dev

stdio servers communicate with MCP clients via JSON-RPC, so no general instructions are printed when running in the terminal.

Notion Setup

  1. Create an Internal Integration in the Notion Integrations screen.

  2. Use the Integration token as NOTION_TOKEN.

  3. Add the Integration via the connection menu of the existing Blog Database.

  4. Find the Database ID in the Database URL and use it as NOTION_DATABASE_ID.

The database property names and types must be as follows.

Property

Notion Type

Default Value

Title

Title

Required

Category

Select

Development

Tags

Multi-select

Empty list

PublishedAt

Date

Current date

Status

Status

published

If the names passed to the Select, Multi-select, and Status options of the existing Database do not exist, option creation may be restricted depending on Notion permissions and settings.

MCP Tools

The server provides a single tool: publish_dev_log.

type PublishDevLogInput = {
  title: string;
  category?: string;
  tags?: string[];
  publishedAt?: string;
  status?: "published" | "draft";
  content: string;
};

The Markdown supported in the body includes headings 1~3, paragraphs, ordered/unordered lists, fenced code blocks, and horizontal rules.

An example call input is as follows.

{
  "title": "DevLog MCP 첫 구현",
  "tags": ["MCP", "Notion", "TypeScript"],
  "content": "# 오늘의 작업\nNotion 발행 도구를 구현했다.\n\n## 결정\n- MCP는 저장만 담당한다.\n- 회고 작성은 코딩 에이전트가 담당한다."
}

Connecting to Codex

First, register the build result based on an absolute path.

codex mcp add devlog-mcp \
  --env NOTION_TOKEN=secret_... \
  --env NOTION_DATABASE_ID=... \
  -- node /Users/oddd/workspace/notion/devlog-mcp/dist/index.js

Check the registration status with the following command.

codex mcp list

Connecting to Claude Code

Register as a project-scope MCP server.

claude mcp add -s project devlog-mcp \
  -e NOTION_TOKEN=secret_... \
  -e NOTION_DATABASE_ID=... \
  -- node /Users/oddd/workspace/notion/devlog-mcp/dist/index.js

Check the registration status with the following command.

claude mcp list

After connecting, you can ask the agent: Organize today's development work into a log and publish it using publish_dev_log.

Available Tools

1 tool
publish_dev_log개발 일지 발행B

완성된 개발 일지를 기존 Notion Blog DB에 발행합니다.

Inputs: title (required), content (required), tags, status, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion. The tool's purpose is entirely distinct by default.

    Naming Consistency5/5

    A single tool cannot violate any naming pattern. The name 'publish_dev_log' follows a clear verb_noun convention.

    Tool Count3/5

    A single tool for a server named 'DevLog MCP' feels thin. While it may serve a specific publishing need, the scope suggests more tools would be expected for full log management.

    Completeness2/5

    The tool only covers publishing completed logs. Missing basic operations like create, list, update, or delete dev logs, which are likely needed for a complete workflow.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers