Skip to main content
Glama
MaynorAI Article Sync MCP

MaynorAI Article Sync MCP

by Maynor996
README.md
# MaynorAI Article Sync MCP

Remote [Model Context Protocol](https://modelcontextprotocol.io/) server for [MaynorAI文章同步助手](https://editor.maynor1024.live/).

It lets an agent **list, read, create, update, and delete cloud article drafts**, and **read cloud video drafts**, using a personal API key.

**This does not publish to WeChat Official Account, Zhihu, Bilibili, WeChat Channels, or any other platform.** Syncing to the 23 supported platforms still uses the browser extension, and the default is to save a draft on the platform, not to publish.

## Connect (Streamable HTTP)

- MCP URL: `https://editor.maynor1024.live/mcp`
- Auth: `Authorization: Bearer sk_...` (or `X-Api-Key`)
- Create a key at https://editor.maynor1024.live/settings/apikeys (sign in required)

Example Claude Code:

```bash
claude mcp add --transport http maynorai-article-sync https://editor.maynor1024.live/mcp
```

Then configure the request header `Authorization: Bearer sk_...` in the client.

Cursor / other clients that support remote MCP can use the same URL and bearer token.

Docs:

- https://editor.maynor1024.live/llms.txt
- https://editor.maynor1024.live/openapi.json
- https://editor.maynor1024.live/api/reference

## Tools

| Tool | Purpose |
| --- | --- |
| `get_me` | Current user id, email, name |
| `list_library_articles` | List cloud article drafts |
| `get_library_article` | Read one article draft (including markdown) |
| `create_library_article` | Create or upsert a cloud article draft |
| `update_library_article` | Update a cloud article draft |
| `delete_library_article` | Soft-delete a draft (at least one article must remain) |
| `list_library_videos` | List cloud video drafts (read-only) |
| `get_library_video` | Read one cloud video draft (read-only; no media upload) |

## Optional stdio wrapper

For MCP clients that only speak stdio, this repository includes a small Node.js proxy (Node 18+). It forwards JSON-RPC to the hosted endpoint and does not run a second copy of the server.

```bash
git clone https://github.com/Maynor996/maynorai-article-sync-mcp.git
cd maynorai-article-sync-mcp
export MAYNORAI_API_KEY=sk_your_key
node src/stdio.mjs
```

Or, after the package is published to npm:

```bash
npx maynorai-article-sync-mcp
```

The npm package is not published yet. Until then, run the clone above, or add this repo as a local stdio server.

## HTTP API

The same API key also works on:

- `GET/POST https://editor.maynor1024.live/api/library/articles`
- `GET/PUT/DELETE https://editor.maynor1024.live/api/library/articles/{id}`
- `GET https://editor.maynor1024.live/api/library/videos`
- `GET https://editor.maynor1024.live/api/library/videos/{id}`

Website cookie sessions continue to work for those HTTP routes. MCP requires an API key.


## Official MCP Registry

Published as `io.github.Maynor996/article-sync` (version 0.1.0, remote Streamable HTTP):

- https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.Maynor996/article-sync
- Versions: https://registry.modelcontextprotocol.io/v0.1/servers/io.github.Maynor996%2Farticle-sync/versions

## License

MIT