Skip to main content
Glama

MCP Blog API

by tussanakorn
  • Linux
  • Apple

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

              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