MojaLab Content
Read-only access to MojaLab.com blog content: search and read posts, pages and tags as Markdown.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"content": {
"url": "https://mojalab.com/mcp"
}
}
}远程端点
https://mojalab.com/mcpstreamable-http它能做什么
工具清单
工具(9)
🟡list_posts(page, limit, tag, since, sort)
List published MojaLab blog posts (title, slug, excerpt, tags, date). Paginated; optionally filter by tag slug, filter by publish date, and sort.
输入模式
{
"type": "object",
"properties": {
"page": {
"type": "integer",
"minimum": 1,
"description": "Page number (default 1)"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "Posts per page (default 10, max 50)"
},
"tag": {
"type": "string",
"description": "Filter by tag slug (see list_tags)"
},
"since": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Only posts published on/after this date (YYYY-MM-DD)"
},
"sort": {
"type": "string",
"enum": [
"date_desc",
"date_asc",
"title"
],
"description": "Sort order (default date_desc)"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_posts(query, limit, excerpt_length)
Search published MojaLab posts by keyword or natural-language query. Results are ranked by relevance (0–1) using hybrid lexical + semantic matching. Use excerpt_length for longer previews.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Keyword or question to search for"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"description": "Max results (default 5)"
},
"excerpt_length": {
"type": "integer",
"minimum": 50,
"maximum": 500,
"description": "Max excerpt characters (default 150)"
}
},
"required": [
"query"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_all(query, limit, content_type, excerpt_length)
Search across all published content — blog posts, static pages/tools, and companion GitHub repositories — ranked by relevance. Each result is prefixed with [post], [page], or [repo].
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Keyword or question to search for"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"description": "Max results (default 10)"
},
"content_type": {
"type": "string",
"enum": [
"all",
"posts",
"pages",
"repos"
],
"description": "Restrict to a content type (default all)"
},
"excerpt_length": {
"type": "integer",
"minimum": 50,
"maximum": 500,
"description": "Max excerpt characters (default 150)"
}
},
"required": [
"query"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_site_summary
Get a concise overview of mojalab.com in one call: what the site is about, main topics, article/page counts, recent articles, and available tools/pages. Use for questions like "what is mojalab?".
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡get_related_posts(slug, limit)
Get posts related to a given post (by shared tags and content similarity), for recommendations.
输入模式
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Slug of the reference post"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 10,
"description": "Max related posts (default 3)"
}
},
"required": [
"slug"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡get_post(slug)
Get the full content of a published MojaLab blog post as Markdown, by slug. Includes any companion repository link.
输入模式
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Post slug, e.g. \"hello-world\""
}
},
"required": [
"slug"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡list_tags
List all public tags on MojaLab with their post counts and descriptions.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢list_pages(page, limit)
List published static pages on MojaLab (about, tools, ...).
输入模式
{
"type": "object",
"properties": {
"page": {
"type": "integer",
"minimum": 1,
"description": "Page number (default 1)"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "Pages per page (default 10, max 50)"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_page(slug)
Get the full content of a published MojaLab static page as Markdown, by slug.
输入模式
{
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Page slug, e.g. \"about\""
}
},
"required": [
"slug"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}社区
证据