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 사용 (추천)

지엑스피1

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에서 모든 블로그를 가져옵니다.

검색_블로그(쿼리: str)

모의 API를 사용하여 제목으로 블로그를 검색합니다.

add_blog(제목: str, 본문: str)

모의 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. 검색\_블로그(쿼리: str)
            3. add\_blog(제목: str, 본문: str)
          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