home / mcp / zhihu http mcp server

Zhihu HTTP MCP Server

Provides a Zhihu content publishing MCP server with endpoints to create articles, answers, and columns via REST

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "chemany-zhihu_mcp_server": {
      "url": "http://localhost:8005/zhihu-mcp-server/health"
    }
  }
}

You can run a RESTful MCP server that publishes Zhihu articles, answers, and columns through simple HTTP endpoints. It handles image uploads, login automation, and session persistence to make publishing effortless from your MCP client.

How to use

You interact with the Zhihu MCP server by making HTTP requests to its endpoints. Use a client of your choice to send REST calls for creating articles, publishing answers, or managing columns. Each action maps to a dedicated endpoint so you can automate content creation from your own tooling. When you call the health endpoint, you can verify the server is reachable and ready.

How to install

Prerequisites: you need Python installed and a compatible browser driver if you plan to use automatic login features. You also need Chrome installed to enable Selenium-based login automation.

Step-by-step install and run - Install Python packages - Start the HTTP API server - Verify the server is up and health check passes - Perform an initial login if you plan to use automated login features

Configuration and usage notes

Install dependencies from a requirements file before starting the server.

Start the HTTP API server with the provided Python entry point. The server runs by default on port 8005.

Health checks are available at the health endpoint to confirm the server is running and ready to accept requests.

First-time use requires manual login to Zhihu to establish a valid session. The server includes Selenium-based automation to help with login if configured.

Session persistence is built in: the server will save and restore login state so you don’t need to re-authenticate on subsequent runs.

When uploading images, ensure the file paths you reference exist and are accessible to the server process.

Endpoints at a glance

Health check: GET /zhihu-mcp-server/health to verify the server is alive.

Create article: POST /zhihu-mcp-server/create_article with JSON payload including title, content, images, tags, optional column_id and cover_image.

Create answer: POST /zhihu-mcp-server/create_answer with JSON payload including question_id, content, optional images, and anonymity flag.

Create column: POST /zhihu-mcp-server/create_column with JSON payload including title, description, and optional cover_image.

Available tools

health

Checks server availability and readiness by calling the health endpoint.

create_article

Publishes a new Zhihu article with title, content, images, tags, and optional column and cover image.

create_answer

Publishes an answer to a Zhihu question with content and optional images and anonymity option.

create_column

Creates a Zhihu column with a title, description, and optional cover image.