MisarMisar Docs
MisarMailMisarBlogMisarReachMisarPostMisarDevMisarCoderMisarSEOMisar PlatformMisar SSO
SDKs

MCP Client

Use the MisarBlog MCP server from any MCP-compatible AI client or your own code with the @misarblog/mcp package.

@misarblog/mcp is the TypeScript/JavaScript client for the MisarBlog MCP server — use articles, drafts, series, AI title/cover-image generation, reactions, comments, newsletter, and analytics tools from any MCP-compatible AI client (Claude Desktop, Claude Code, Cursor) or your own code.

  • MCP endpoint: https://api.misar.io/blog/mcp
  • Auth: Authorization: Bearer mbk_... (a MisarBlog developer key — see API Keys)
  • Full MCP docs: MCP overview · setup · tools

Installation

npm install @misarblog/mcp

Programmatic use

import { MisarBlogMCPClient } from "@misarblog/mcp";

const client = new MisarBlogMCPClient({ apiKey: "mbk_YOUR_KEY" });
await client.initialize();

const tools = await client.listTools();

const res = await client.publishArticle({
  title: "Hello world",
  body_markdown: "# Hi\n\nMy first post.",
  tags: ["intro"],
});
console.log(res.content[0].text);

Discovery (initialize / tools/list) works unauthenticated; tool execution requires a valid mbk_ key.

Claude Desktop / Claude Code config

Generate the MCP server config for a Claude client:

import { getClaudeConfig } from "@misarblog/mcp";
console.log(JSON.stringify(getClaudeConfig("mbk_YOUR_KEY"), null, 2));
{
  "mcpServers": {
    "misarblog": {
      "url": "https://api.misar.io/blog/mcp",
      "headers": { "Authorization": "Bearer mbk_YOUR_KEY" }
    }
  }
}

Reference

ExportDescription
MisarBlogMCPClientMCP client. initialize(), listTools(), and typed tool helpers (e.g. publishArticle(...)).
getClaudeConfig(apiKey)Returns the mcpServers config object for Claude Desktop / Claude Code.

For the full tool catalogue and setup for other MCP clients, see the MCP docs.