About Afdiantomarkdown
Afdiantomarkdown is an MCP server published by PhiFever in the Content category: 爱发电爬虫(afdian.com). Conduid read 5 tools from its source: list_authors, list_comments, list_posts, read_post and search. No package is published for it, so it installs from a source checkout.
The repository has 83 stars and 16 forks, is licensed AGPL-3.0, and its last commit was on 30 Nov 2026. The latest release is v1.3.2 (31 May 2026): Changelog Bug fixes 81e39637470dcb65e6a46aef6db5b0168667be72: fix: 请求超时自动重试 (@PhiFever) Checksums Please verify the SHA256 checksums after downloading. It follows v1.3.1 (5 May 2026), and the 5 most recent releases go back to v1.2.0 (9 Mar 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include spider, crawler, devtools and afdian.
Install
git clone https://github.com/PhiFever/AfdianToMarkdownTools (5)
list_authors列出数据目录下所有已下载的作者及其文章数(按 canonical id 去重)list_comments列出一篇文章的评论(热评 + 普通评论),支持按评论者过滤与分页。定位参数 id/url/path 三选一| Parameter | Type | Description |
|---|---|---|
| commenter | string | 评论者名子串过滤,大小写不敏感(可选) |
| hot_only | boolean | 仅返回热评,默认 false |
| id | string | canonical id(afdian 文章 hash) |
| limit | number | 返回上限,默认 50 |
| offset | number | 偏移,默认 0 |
| path | string | 文章的相对路径(相对于数据目录) |
| url | string | afdian 文章 URL 或裸 hash |
list_posts列出指定作者下的文章(按 canonical id 去重),支持作品集/标题/日期过滤与分页,返回精简元信息| Parameter | Type | Description |
|---|---|---|
| author * | string | 作者的 URL slug(即目录名) |
| collection | string | 仅返回属于该作品集的文章(可选) |
| date_from | string | 起始日期 YYYY-MM-DD,含(可选) |
| date_to | string | 结束日期 YYYY-MM-DD,含(可选) |
| limit | number | 返回上限,默认 50 |
| offset | number | 偏移,默认 0 |
| title_contains | string | 标题子串过滤,大小写不敏感(可选) |
read_post读取一篇文章的完整内容。优先级:id > url > path > author+title| Parameter | Type | Description |
|---|---|---|
| author | string | 作者名(与 title 配合使用) |
| id | string | canonical id(afdian 文章 hash),最精确 |
| path | string | 文章的相对路径(相对于数据目录) |
| title | string | 文章标题关键词(模糊匹配;去重后多义时返回带 id 的候选列表) |
| url | string | afdian 文章 URL 或裸 hash |
search在已下载文档中全文搜索。多概念请用空格分隔(如 `信念 执念 信仰`),默认 AND;"短语" 精确匹配。结果按 canonical id 去重并按相关性排序,文档级聚合。| Parameter | Type | Description |
|---|---|---|
| author | string | 限定作者(可选) |
| collection | string | 限定作品集(可选) |
| limit | number | 文档级返回上限,默认 10 |
| match | string | all=全部命中(AND,默认),any=任一命中(OR) |
| offset | number | 文档级偏移,默认 0 |
| per_doc_hits | number | 每篇文档返回的片段上限,默认 3 |
| query * | string | 搜索关键词;空格/标点切分为多个词,默认全部命中(AND);用英文双引号包裹的为短语精确匹配 |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 568 words.
- ✓License declaredThe repository declares the AGPL-3.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum.
- ✓No dynamic code executionScanned 18 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPmcp/server.go:151, mcp/server.go:156
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 8 callsafdian/album/album.go:53, afdian/motion/motion.go:25, afdian/shop/shop.go:34
- Lockfile
- go.sum
Pattern matches on the source text of 18 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 568 words, fetched a month ago. The original in the repository is authoritative.
Read full README