Skip to main content
Glama

MCP Blog API

by tussanakorn

API блога MCP

Простой API-сервис блога, созданный с помощью FastMCP и httpx. Этот проект поддерживает uv для быстрого и надежного управления пакетами Python и настройки среды.

Описание

Этот проект предоставляет набор инструментов API для взаимодействия с фиктивным сервисом API блога. Он позволяет пользователям извлекать все блоги, искать блоги по названию и добавлять новые записи блога. Проект включает файл uv.lock для воспроизводимого управления зависимостями.

Функции

  • Извлечь все блоги из фиктивного API
  • Поиск блогов по названию
  • Добавить новые записи в блог

Требования

  • Python 3.13 или выше
  • httpx 0.28.1 или выше
  • mcp 1.9.0 или выше

Установка

Использование УФ (рекомендуется)

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

Использование пипа

# 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 python main.py

Использование стандартного Python

python main.py

Управление окружающей средой

Использование УФ (рекомендуется)

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

получить_блоги()

Извлекает все блоги из фиктивного API.

search_blogs(запрос: str)

Поиск блогов по названию с использованием фиктивного API.

add_blog(заголовок: ул, тело: ул)

Добавляет новый блог в фиктивный API.

Лицензия

[Добавьте здесь информацию о вашей лицензии]

Внося вклад

[Добавьте здесь правила по внесению вклада]

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 -
    9
    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 -
    3
  • -
    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 -
    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 -
    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