MCP Blog API

by tussanakorn
  • Linux
  • Apple
Integrations
  • Allows interaction with a mock blog API service, providing tools for fetching blogs, searching blogs by title, and adding new blog posts.

MCP ブログ API

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

説明

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

特徴

  • モック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 に新しいブログを追加します。

ライセンス

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

貢献

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

-
security - not tested
F
license - not found
-
quality - not tested

FastMCP で構築されたシンプルなブログ API サービス。ユーザーは、すべてのブログを取得したり、タイトルでブログを検索したり、新しいブログ投稿を追加したりできます。

  1. 説明
    1. 特徴
      1. 要件
        1. インストール
          1. uvの使用(推奨)
          2. pipの使用
        2. 使用法
          1. サーバーの実行
            1. uvの使用(推奨)
            2. 標準Pythonを使用する
          2. 環境管理
            1. uvの使用(推奨)
          3. APIリファレンス
            1. get\_blogs()
            2. search\_blogs(クエリ: str)
            3. add\_blog(タイトル: 文字列、本文: 文字列)
          4. ライセンス
            1. 貢献

              Related MCP Servers

              • -
                security
                F
                license
                -
                quality
                A Python MCP server that enables semantic search through Search Labs blog posts indexed in Elasticsearch, allowing Claude to intelligently retrieve relevant information from the blog content.
                Last updated -
                Python
              • -
                security
                F
                license
                -
                quality
                An intermediary server that enables AI models to interact with Google's Blogger platform, automating the creation and management of blogs, posts, and labels through the Blogger API.
                Last updated -
                58
                1
                TypeScript
              • -
                security
                F
                license
                -
                quality
                A FastMCP-based service that provides stock data including historical prices, fundamental information, and financial news.
                Last updated -
                1
                Python
                • Linux
                • Apple
              • -
                security
                -
                license
                -
                quality
                A FastMCP server that enables browser automation through natural language commands, allowing Language Models to browse the web, fill out forms, click buttons, and perform other web-based tasks via a simple API.
                Last updated -
                1
                Python

              View all related MCP servers

              ID: u42ynrwl1f