Skip to main content
Glama

MCP Blog API

by tussanakorn

MCP Blog API

Ein einfacher Blog-API-Dienst, erstellt mit FastMCP und httpx. Dieses Projekt unterstützt UV für schnelles, zuverlässiges Python-Paketmanagement und Umgebungs-Setup.

Beschreibung

Dieses Projekt bietet eine Reihe von API-Tools für die Interaktion mit einem simulierten Blog-API-Dienst. Es ermöglicht Benutzern, alle Blogs abzurufen, nach Blogtiteln zu suchen und neue Blogbeiträge hinzuzufügen. Das Projekt enthält eine uv.lock-Datei für reproduzierbares Abhängigkeitsmanagement.

Merkmale

  • Alle Blogs von der Mock-API abrufen
  • Suche nach Blogs nach Titel
  • Neue Blogbeiträge hinzufügen

Anforderungen

  • Python 3.13 oder höher
  • httpx 0.28.1 oder höher
  • mcp 1.9.0 oder höher

Installation

Verwendung von UV (empfohlen)

# Clone the repository git clone https://github.com/yourusername/mcp-blog.git cd mcp-blog # Install dependencies with uv uv pip install -e .

Verwenden von pip

# Clone the repository git clone https://github.com/yourusername/mcp-blog.git cd mcp-blog # Install dependencies pip install -e .

Verwendung

# 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.")

Ausführen des Servers

Verwendung von UV (empfohlen)

uv python main.py

Verwenden von Standard-Python

python main.py

Umweltmanagement

Verwendung von UV (empfohlen)

uv ermöglicht schnelles Umgebungsmanagement für Python-Projekte. So erstellen und verwalten Sie eine virtuelle Umgebung für dieses Projekt:

# 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-Referenz

get_blogs()

Ruft alle Blogs von der Mock-API ab.

search_blogs(Abfrage: str)

Sucht mithilfe der Mock-API nach Blogs nach Titel.

add_blog(Titel: str, Text: str)

Fügt der Mock-API ein neues Blog hinzu.

Lizenz

[Fügen Sie hier Ihre Lizenzinformationen hinzu]

Beitragen

[Hier Beitragsrichtlinien hinzufügen]

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

Ein einfacher, mit FastMCP erstellter Blog-API-Dienst, der es Benutzern ermöglicht, alle Blogs abzurufen, nach Blogs nach Titel zu suchen und neue Blogbeiträge hinzuzufügen.

  1. Beschreibung
    1. Merkmale
      1. Anforderungen
        1. Installation
          1. Verwendung von UV (empfohlen)
          2. Verwenden von pip
        2. Verwendung
          1. Ausführen des Servers
            1. Verwendung von UV (empfohlen)
            2. Verwenden von Standard-Python
          2. Umweltmanagement
            1. Verwendung von UV (empfohlen)
          3. API-Referenz
            1. get_blogs()
            2. search_blogs(Abfrage: str)
            3. add_blog(Titel: str, Text: str)
          4. Lizenz
            1. Beitragen

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                A high-performance FastAPI server supporting Model Context Protocol (MCP) for seamless integration with Large Language Models, featuring REST, GraphQL, and WebSocket APIs, along with real-time monitoring and vector search capabilities.
                Last updated 5 months ago
                9
                Python
                MIT License
              • -
                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 5 months ago
                3
                Python
              • -
                security
                A
                license
                -
                quality
                A FastMCP-based server that provides tools for discovering RSS feeds, fetching and processing news content, searching articles by keyword, and generating summaries across multiple news sources and categories.
                Last updated 3 months ago
                Python
                MIT License
              • -
                security
                A
                license
                -
                quality
                A REST API built with FastAPI that exposes endpoints via Model Context Protocol (MCP), allowing clients to interact with CRUD operations through MCP interfaces.
                Last updated 2 months ago
                Python
                MIT License
                • Apple
                • Linux

              View all related MCP servers

              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