Skip to main content
Glama
@dayby/mcp-server

@dayby/mcp-server

by ja-roque

@dayby/mcp-server

Post your dev progress to DayBy.dev from Claude, Cursor, or any MCP client — with local sanitization so your company secrets never leave your machine.

How It Works

draft_post → sanitized locally, never touches network
           → Claude shows you a clean preview
           → you approve
           → publish_post → DayBy API (sanitized content only)

The raw context from your codebase never touches the network. Only the sanitized, approved version gets published.

Related MCP server: Ghost Writer MCP

Tools

Tool

What it does

Touches network?

draft_post

Creates a sanitized draft from your description

No

edit_draft

Modify a draft before publishing

No

check_content

Dry-run: see what would get stripped

No

publish_post

Publish an approved draft to DayBy

Yes (sanitized only)

list_posts

List your recent DayBy posts

Yes

get_post

Fetch a single post by slug

Yes

update_post

Update title, content, or visibility

Yes

delete_post

Permanently delete a post

Yes

What Gets Stripped (Automatically)

  • API keys, tokens, secrets

  • AWS ARNs and access keys

  • Private IP addresses

  • Email addresses

  • SSH keys, JWTs, GitHub tokens

  • Database connection URLs

  • File paths with usernames

  • Plus anything you configure in blocklist

Setup

1. Install

Option A — npx (no install needed):

npx @dayby/mcp-server

Option B — global install:

npm install -g @dayby/mcp-server

Option C — from source:

git clone https://github.com/ja-roque/dayby-mcp-server.git
cd dayby-mcp-server
npm install && npm run build

2. Authenticate

Run the auth command to connect your DayBy account:

dayby-mcp auth

This opens your browser for a one-click authorization. Your token is saved locally at ~/.dayby/credentials.json.

To log out:

dayby-mcp auth --logout

Alternatively, you can set the DAYBY_API_KEY environment variable (from Settings > API on dayby.dev).

3. Add to your MCP client

Claude Code (simplest):

claude mcp add dayby -- dayby-mcp

Or with npx:

claude mcp add dayby -- npx @dayby/mcp-server

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "dayby": {
      "command": "npx",
      "args": ["@dayby/mcp-server"]
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "dayby": {
      "command": "npx",
      "args": ["@dayby/mcp-server"]
    }
  }
}

Create ~/.dayby/sanitizer.json:

{
  "blockedTerms": ["YourCompany", "ProjectCodename"],
  "blockedDomains": ["internal.yourcompany.com"],
  "blockedNames": ["Your Boss Name"],
  "customPatterns": ["JIRA-\\d+", "INTERNAL-\\d+"]
}

Usage Examples

While coding:

"I just figured out how to use PostgreSQL partial indexes to optimize a multi-tenant query. Draft a DayBy post about it."

After a PR:

"I built a rate limiter using Redis sorted sets today. Post it to DayBy."

Quick check:

"Check if this text has any sensitive data before I post it."

Claude will use draft_post to sanitize locally, show you a preview, and only publish when you approve.

Environment Variables

Variable

Description

Default

DAYBY_API_KEY

Your DayBy API key (alternative to dayby-mcp auth)

(none)

DAYBY_API_URL

DayBy API URL

https://dayby.dev

DAYBY_BLOCKED_TERMS

Comma-separated blocked terms

(none)

DAYBY_BLOCKED_DOMAINS

Comma-separated blocked domains

(none)

Troubleshooting

dayby-mcp: command not found after global install

Your npm global bin isn't in your PATH. Run:

source ~/.bashrc

Or add this to your ~/.bashrc / ~/.zshrc:

export PATH="$(npm bin -g):$PATH"

Then restart your terminal or run source ~/.bashrc again.

MCP server not showing up in Claude

Restart Claude Code / Claude Desktop after adding the MCP config.

Not authenticated errors

Run dayby-mcp auth to connect your account, or set DAYBY_API_KEY in your environment.

License

MIT

Available Tools

9 tools
check_contentA

Check if content contains sensitive data without creating a draft. Useful for quick checks before writing a post.

Inputs: text (required).

delete_postA

Permanently delete a DayBy post by its slug.

Inputs: slug (required).

draft_postA

Create a sanitized draft of a dev progress post. Content is cleaned locally — nothing is sent to the network. Returns a preview for the user to review before publishing.

Inputs: title (required), content (required), tags, visibility.

edit_draftA

Edit a draft post before publishing. Provide updated title and/or content — they will be re-sanitized locally.

Inputs: draft_id (required), tags, title, content, +1 more.

get_postA

Get a single DayBy post by its slug.

Inputs: slug (required).

list_postsC

List your recent DayBy posts.

Inputs: page, per_page.

publish_postA

Publish a previously drafted post to DayBy. Only the sanitized version is sent — the original content never leaves your machine.

Inputs: draft_id (required), generate_article.

update_articleA

Set or replace the HTML article for a DayBy post. Use this to write custom articles with CTAs, rich formatting, or any content the user wants.

DayBy article HTML rules:

  • Return clean HTML fragments only (no wrapper divs, article tags, doctype, html, head, body)

  • Use tags for paragraphs (no classes needed)

  • Use for section headings, for sub-sections

  • Use for key terms, for emphasis

  • Use for pull quotes

  • Use for code blocks, inline for references

  • Use / for lists (prefer prose over lists)

  • Use for links and CTAs

  • No CSS classes on elements (the page stylesheet handles typography)

  • Target length: 600-1000 words

  • Keep the author's voice and perspective from the original post

Inputs: slug (required), html_article (required).

update_postC

Update an existing DayBy post by slug. Content is sanitized locally before sending.

Inputs: slug (required), tags, title, content, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 9 tools

    Disambiguation4/5

    Most tools map cleanly to distinct lifecycle stages: draft, edit, publish, update, delete. The main potential confusion is between update_post and update_article, since both modify an existing post, though their descriptions differentiate general content updates from HTML article replacement.

    Naming Consistency4/5

    Tool names mostly follow a clear verb_noun snake_case pattern: list_posts, get_post, publish_post, update_post, delete_post, check_content. Minor deviations exist with edit_draft and update_article, which use different object nouns, and draft_post could be read as a noun phrase, but the overall convention is still predictable.

    Tool Count5/5

    Nine tools is a well-scoped size for a focused post-management server. Each tool covers a meaningful part of the drafting, publishing, updating, and deletion workflow without redundancy or excessive surface area.

    Completeness4/5

    The core lifecycle is covered well: draft, edit draft, publish, list, get, update, delete, and content checking. The main gap is that once a draft is created, there is no explicit way to list or retrieve saved drafts, which could make the edit_draft workflow harder to use.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers