Zhihu MCP Server

Zhihu MCP Server

A simple HTTP API server that allows users to publish articles, create answers, manage columns, and upload images on Zhihu (a Chinese Q&A platform) through straightforward REST API endpoints.

Category
Visit Server

README

知乎MCP服务器

简单的知乎发布HTTP API服务器,采用和小红书、头条相同的简化架构。

功能特性

  • 简单HTTP API:避免复杂的MCP协议,使用直观的REST API
  • 📝 文章发布:支持创建和发布知乎文章
  • 💬 回答发布:支持回答知乎问题
  • 📚 专栏管理:支持创建知乎专栏
  • 🖼️ 图片上传:支持文章和回答中的图片
  • 🔐 自动登录:支持Selenium自动化登录
  • 🍪 会话保持:自动保存和恢复登录状态

API接口

健康检查

GET /zhihu-mcp-server/health

创建文章

POST /zhihu-mcp-server/create_article
Content-Type: application/json

{
    "title": "文章标题",
    "content": "文章内容",
    "images": ["图片路径1", "图片路径2"],
    "tags": ["标签1", "标签2"],
    "column_id": "专栏ID(可选)",
    "cover_image": "封面图片路径(可选)"
}

创建回答

POST /zhihu-mcp-server/create_answer
Content-Type: application/json

{
    "question_id": "问题ID或URL",
    "content": "回答内容",
    "images": ["图片路径1", "图片路径2"],
    "is_anonymous": false
}

创建专栏

POST /zhihu-mcp-server/create_column
Content-Type: application/json

{
    "title": "专栏标题",
    "description": "专栏描述",
    "cover_image": "封面图片路径(可选)"
}

安装和使用

  1. 安装依赖
pip install -r requirements.txt
  1. 启动服务器
python zhihu_http_api_server.py
  1. 服务器地址
  • 默认端口:8005
  • 健康检查:http://localhost:8005/zhihu-mcp-server/health

端口配置

  • 🔴 小红书MCP服务器:8002端口
  • 🟠 今日头条HTTP API服务器:8003端口
  • 🔵 知乎HTTP API服务器:8005端口

注意事项

  1. Chrome驱动:需要安装Chrome浏览器和对应的ChromeDriver
  2. 首次使用:首次启动时需要手动登录知乎账号
  3. 会话保持:登录状态会自动保存,无需重复登录
  4. 图片上传:确保图片文件路径正确且文件存在

项目结构

zhihu_mcp_server/
├── zhihu_http_api_server.py     # HTTP API服务器主文件
├── zhihu_mcp_server/            # 核心功能包
│   ├── __init__.py             # 包初始化文件
│   ├── auth.py                 # 认证管理模块
│   └── publisher.py            # 发布功能模块
├── requirements.txt            # 依赖包列表
└── README.md                  # 说明文档

架构特点

采用了和小红书、头条相同的简化架构:

  • 简单HTTP API直接功能调用简单JSON响应
  • 避免了复杂的MCP协议、会话管理、Streamable-HTTP等复杂性
  • 提供了稳定可靠的发布服务

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured