MCP Blog API
MCP ブログ API
FastMCPとhttpxで構築されたシンプルなブログAPIサービスです。このプロジェクトは、高速で信頼性の高いPythonパッケージ管理と環境設定のためにuvをサポートしています。
説明
このプロジェクトは、模擬ブログAPIサービスと連携するためのAPIツールセットを提供します。ユーザーは、すべてのブログの取得、タイトルによるブログの検索、新しいブログ投稿の追加などを行うことができます。また、再現可能な依存関係管理のためのuv.lockファイルも含まれています。
Related MCP server: hello-mcp
特徴
モックAPIからすべてのブログを取得する
タイトルでブログを検索する
新しいブログ投稿を追加する
要件
Python 3.13以上
httpx 0.28.1以上
mcp 1.9.0以上
インストール
uvの使用(推奨)
# Clone the repository
git clone https://github.com/yourusername/mcp-blog.git
cd mcp-blog
# Install dependencies with uv
uv pip install -e .pipの使用
# Clone the repository
git clone https://github.com/yourusername/mcp-blog.git
cd mcp-blog
# Install dependencies
pip install -e .使用法
# Import the MCP server
from main import mcp
# Get all blogs
blogs = mcp.tools.get_blogs()
# Search for blogs by title
search_results = mcp.tools.search_blogs(query="Python")
# Add a new blog
new_blog = mcp.tools.add_blog(title="My New Blog", body="This is the content of my new blog post.")サーバーの実行
uvの使用(推奨)
uv python main.py標準Pythonを使用する
python main.py環境管理
uvの使用(推奨)
uv は Python プロジェクトに高速な環境管理を提供します。このプロジェクト用の仮想環境を作成および管理する方法は次のとおりです。
# Create a new virtual environment
uv venv
# Activate the virtual environment
# On Unix/macOS
source .venv/bin/activate
# On Windows
.venv\Scripts\activate
# Install dependencies in the virtual environment
uv pip install -e .
# Update dependencies
uv pip syncAPIリファレンス
get_blogs()
モック API からすべてのブログを取得します。
search_blogs(クエリ: str)
モック API を使用してタイトルでブログを検索します。
add_blog(タイトル: 文字列、本文: 文字列)
モック API に新しいブログを追加します。
ライセンス
[ここにライセンス情報を追加してください]
貢献
[ここに投稿ガイドラインを追加]
Available Tools
3 toolsadd_blogC
Add a new blog to the mock API.
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| body | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It states 'Add a new blog' which implies a write/mutation operation, but doesn't disclose behavioral traits such as authentication needs, rate limits, idempotency, or what happens on success/failure. This is inadequate for a mutation tool with zero annotation coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero waste. It's appropriately sized and front-loaded, stating the core purpose without unnecessary elaboration.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given a mutation tool with no annotations, 0% schema coverage, no output schema, and 2 required parameters, the description is incomplete. It lacks parameter explanations, behavioral context, and usage guidelines, making it insufficient for effective tool invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the schema provides no parameter descriptions. The description doesn't mention parameters at all, failing to add any meaning beyond the input schema. For a tool with 2 required parameters, this leaves semantics completely undocumented.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Add a new blog') and target resource ('to the mock API'), providing a specific verb+resource combination. However, it doesn't differentiate from sibling tools like 'get_blogs' or 'search_blogs', which would require mentioning this is for creation versus retrieval/search operations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, context for creation, or compare to sibling tools like 'get_blogs' or 'search_blogs', leaving the agent without explicit usage instructions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_blogsB
Fetch all blogs from the mock API.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions fetching all blogs but does not specify aspects like rate limits, authentication needs, pagination, or error handling. This leaves significant gaps in understanding how the tool behaves in practice.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's function without unnecessary words. It is front-loaded and wastes no space, making it easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is adequate but minimal. It covers the basic purpose but lacks details on behavior, usage context, or output format, which could be helpful for an agent despite the low complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has 0 parameters, and the input schema has 100% description coverage (though empty). The description does not need to add parameter details, so it meets the baseline expectation for a parameterless tool by not introducing confusion or redundancy.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Fetch') and resource ('all blogs from the mock API'), making the purpose evident. However, it does not explicitly differentiate from the sibling 'search_blogs', which might also retrieve blogs but with filtering capabilities, leaving some ambiguity about when to choose one over the other.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives like 'search_blogs' or 'add_blog'. The description implies it fetches all blogs without filtering, but this is not stated explicitly, leaving the agent to infer usage context without clear directives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_blogsC
Search for blogs by title using the mock API.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the search action and API source but omits critical details such as whether this is a read-only operation, expected response format, error handling, or any rate limits. The description is minimal and lacks depth for a tool with behavioral implications.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero waste. It is appropriately sized and front-loaded, directly stating the tool's purpose without unnecessary elaboration.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the lack of annotations and output schema, the description is incomplete. It covers the basic action but misses essential context like return values, error cases, and behavioral traits. For a search tool with no structured support, this leaves significant gaps in understanding.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 0%, so the description must compensate. It only vaguely implies that the 'query' parameter is for title searches, without detailing syntax, format, or constraints. This adds minimal meaning beyond the bare schema, failing to adequately document the single required parameter.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Search for blogs') and the resource ('blogs'), specifying the search criterion ('by title') and the data source ('using the mock API'). It distinguishes from sibling 'get_blogs' by indicating a search rather than a general retrieval, but doesn't explicitly differentiate from 'add_blog' beyond the verb difference.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No explicit guidance is provided on when to use this tool versus alternatives like 'get_blogs' or 'add_blog'. The description implies usage for title-based searches but lacks context on prerequisites, exclusions, or comparative scenarios with siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
3 tool updates
- First observed
add_blog - First observed
get_blogs - First observed
search_blogs
TDQS
Each tool has a clearly distinct purpose: add_blog creates new blogs, get_blogs retrieves all blogs, and search_blogs finds blogs by title. There is no overlap in functionality, making tool selection straightforward for an agent.
All tool names follow a consistent verb_noun pattern with snake_case: add_blog, get_blogs, and search_blogs. This predictability enhances readability and usability across the tool set.
With only 3 tools, the set feels thin for a blog API that typically requires CRUD operations. While the tools cover creation and retrieval, the absence of update and delete tools limits the server's scope, making it borderline appropriate.
The tool set is significantly incomplete for a blog API domain. It lacks update_blog and delete_blog tools, preventing full lifecycle management. This gap will likely cause agent failures when attempting to modify or remove blogs.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Create, edit, organize, publish, and configure JustBlogged blogs from MCP clients.
Hosted MCP for BlogBat: read, write, generate, and publish blog articles and content.
Search and read the Radixia blog (enterprise AI, cloud, open source) via MCP.
An MCP server for the BlogCaster project.
Related MCP Servers
- FlicenseAqualityBmaintenanceMCP server that gives AI agents full blog management over a Lontar headless blogging API, enabling listing, reading, drafting, publishing, updating, and deleting posts.8-
- FlicenseAqualityDmaintenanceA simple MCP server that provides a greeting tool using FastMCP, with support for both local and containerized deployment.1-
- FlicenseDqualityDmaintenanceMCP server for blog management that provides tools to get, search, and create blog posts via a mock API.3-
- FlicenseNot gradedqualityDmaintenanceDemonstrates a simple MCP client-server setup using fastmcp, with an advanced blog server featuring dynamic resources, tools for post creation and publishing workflows, caching, and async operations.-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tussanakorn/POC_MCP_Protocol_using_FastMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server