MCP Blog Server
MCP server for blog management that provides tools to get, search, and create blog posts via a mock API.
README
MCP Blog Server
A Model Context Protocol (MCP) server that provides blog management tools through a simple API interface. This server allows AI assistants to interact with a blog system to retrieve, search, and create blog posts.
๐ Features
- Get Blogs: Retrieve all available blog posts
- Search Blogs: Search for blogs by name/query
- Create Blog: Add new blog posts to the system
- MCP Integration: Fully compatible with MCP-compatible AI assistants
๐ ๏ธ Prerequisites
- Python 3.10 or higher
uvpackage manager (recommended) orpip
๐ฆ Installation
-
Clone the repository:
git clone <your-repo-url> cd mcp-by-gokogua -
Create a virtual environment:
python3.11 -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate -
Install dependencies:
uv add "mcp[cli]" httpx
๐ง Configuration
Claude Desktop Configuration
To use this MCP server with Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"gokogua-blog": {
"command": "uv",
"args": ["--directory", "/path/to/your/project", "run", "main.py"]
}
}
}
Note: Replace /path/to/your/project with the actual path to your project directory.
๐ Usage
Running the Server
# Activate virtual environment
source .venv/bin/activate
# Run the MCP server
uv run main.py
Available Tools
The server provides three main tools:
get_blogs()- Retrieves all blog posts from the APIsearch_blogs(query: str)- Searches for blogs matching the given querycreate_blog(name: str)- Creates a new blog post with the specified name
API Endpoint
The server connects to a mock API at:
https://6898a797ddf05523e55f7ac1.mockapi.io/blogs/Blogs
๐๏ธ Project Structure
mcp-by-gokogua/
โโโ main.py # Main MCP server implementation
โโโ pyproject.toml # Project configuration and dependencies
โโโ README.md # This documentation
โโโ .venv/ # Virtual environment (created during setup)
๐ MCP Integration
This server implements the Model Context Protocol (MCP) using FastMCP, providing a standardized way for AI assistants to interact with external tools and data sources.
Transport
The server uses stdio transport, making it compatible with most MCP clients.
๐งช Testing
To test the server functionality:
- Start the server using
uv run main.py - Use an MCP-compatible client to connect
- Test the available tools through the MCP interface
๐ Dependencies
- mcp: Model Context Protocol implementation
- httpx: Modern HTTP client for Python
- FastMCP: Fast MCP server framework
๐ค Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
๐ License
This project is open source and available under the MIT License.
๐ Support
If you encounter any issues:
- Check that Python 3.10+ is installed
- Verify all dependencies are installed correctly
- Ensure the virtual environment is activated
- Check the API endpoint is accessible
๐ Related Links
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.