jiuyan-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jiuyan-mcpwhat's trending on jiuyangongshe today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
jiuyan-mcp
MCP server for fetching data from 韭研公社 (jiuyangongshe.com).
Prioritizes login-free access to public featured data (timeline, hot rankings, search, full article text, community sections); "Action Alerts" and "Follow Feed" are site login data, available after configuring the web SESSION cookie.
For personal learning and research only. Please respect the site's terms of service; do not scrape at high frequency or use commercially. This repository has no affiliation with the official 韭研公社.
Tools overview
Tool | Description | Login |
| Timeline: event stream grouped by date (title/rating/theme/related articles) | No |
| Hot rankings: hot search keyword board + popular articles board | No |
| Keyword search for discussion posts/articles (sorted by popularity or time) | No |
| Fetch full article HTML and metadata by article_id | No |
| Community section list (Research Picks/Plaza/Lifestyle × Latest/Hot/Action sorting) | No |
| Action field list for the day (action_field_id) | Yes |
| Individual stock action details under action sectors (limit-up reasons, etc.) | Yes |
| Follow feed: latest posts from people you follow | Yes |
Related MCP server: Real-time Stock MCP Service
Quick start
git clone <repo-url> && cd jiuyan-mcp
npm installRegister it in your MCP client configuration (e.g., ~/.omp/agent/mcp.json):
{
"mcpServers": {
"jiuyan": {
"type": "stdio",
"command": "node",
"args": ["/绝对路径/jiuyan-mcp/src/index.js"],
"env": {
"JIYAN_SESSION": "<可选:网页 SESSION cookie 值>"
}
}
}
}Obtaining the login cookie (JIYAN_SESSION)
Log in to www.jiuyangongshe.com; in your browser;
F12 → Application/Storage → Cookies →
https://www.jiuyangongshe.com;Copy the value named
SESSIONand fill it intoJIYAN_SESSION;Restart the MCP client. When not configured, anonymous tools work as usual, and login tools return a clear prompt.
Signature mechanism (why this server is needed to run)
The 韭研公社 web API (web-api.jiuyangongshe.com/jystock-app) requires a token + timestamp header on every request. The signing material is embedded in the SSR page ({digest, project, serverTime} under an obfuscated key in window.__NUXT__), and the derivation algorithm is hidden in a VM-obfuscated module bundled by Nuxt. This project harvests the webpack module table inside a node:vm sandbox and initializes that module, directly calling its signing function to generate the headers for each request—no browser needed at any point.
Robustness design:
Both the digest key name and the signing function name are obfuscated artifacts—the digest is extracted with a loose regex, and the signing function is auto-discovered by its "output shape," so it adapts even when the site rotates names on release;
The signing time window is <10 minutes; when the token expires (errCode=110), the page is automatically re-fetched, the sandbox rebuilt, and one retry is attempted;
Chunk files are cached in the system temp directory (7 days) to avoid re-downloading ~1.6MB of static assets;
Adjacent upstream requests are forced to be ≥1s apart—polite rate limiting.
Known limitations
The "Action Alerts" family and the follow feed are confirmed to require a logged-in state (errCode=1); anonymous access cannot bypass this;
No web endpoint for "fetching a specific user's historical posts by user_id" was found in any public project; posts from followed people are currently obtained via the follow feed (
/api/v2/article/newest/list);The old app domain
app.jiuyangongshe.comhas a version gate (errCode=9); this project does not use it;A major frontend version upgrade of the site may change the signing module id, in which case
KNOWN_MODULE_IDSwill need to be updated.
Structure
src/
signer.js # SSR digest 抓取 + vm 沙箱签名函数发现与调用
api.js # HTTP 客户端:鉴权头、限速、errCode 映射、110 自动重试
tools.js # 8 个 MCP 工具定义与入参 schema
index.js # stdio MCP 服务器入口License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables real-time stock market analysis through AKShare API integration. Supports retrieving live stock prices, historical data, technical indicators (MA, MACD, RSI), market sentiment analysis, stock search, and financial news.5
- AlicenseAqualityCmaintenanceProvides real-time stock market data and analysis from Chinese markets through 34 MCP tools, including K-line charts, technical indicators, fundamental analysis, financial metrics, and market insights without requiring authentication or API tokens.3453MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to query real-time A-share stock data, including quotes, fund flows, sector flows, and K-line history, without needing an API key.56MIT
- AlicenseNot gradedqualityCmaintenanceProvides free Chinese A-share stock data including real-time quotes, historical K-lines, market scanning, and multi-factor stock screening via BaoStock and Sina Finance APIs.MIT
Related MCP Connectors
Provide access to Chinese stock market data including historical prices, real-time data, news, and…
Access real-time and historical market data for China A-shares and Hong Kong stocks, along with ne…
Access SEC filings, insider transactions, and financial data via the ShareSEER API.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Zessi-C/jiuyan-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server