Skip to main content
Glama

MCP ブログ API

FastMCPとhttpxで構築されたシンプルなブログAPIサービスです。このプロジェクトは、高速で信頼性の高いPythonパッケージ管理と環境設定のためにuvをサポートしています。

説明

このプロジェクトは、模擬ブログAPIサービスと連携するためのAPIツールセットを提供します。ユーザーは、すべてのブログの取得、タイトルによるブログの検索、新しいブログ投稿の追加などを行うことができます。また、再現可能な依存関係管理のためのuv.lockファイルも含まれています。

Related MCP server: MyAIServ MCP Server

特徴

  • モック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 sync

APIリファレンス

get_blogs()

モック API からすべてのブログを取得します。

search_blogs(クエリ: str)

モック API を使用してタイトルでブログを検索します。

add_blog(タイトル: 文字列、本文: 文字列)

モック API に新しいブログを追加します。

ライセンス

[ここにライセンス情報を追加してください]

貢献

[ここに投稿ガイドラインを追加]

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

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