Skip to main content
Glama
xiedeming
by xiedeming

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_API_KEYNoBearer key for the HTTP MCP endpoint. Required when running in HTTP mode; not needed for stdio mode.
ENABLE_GDELTNoEnable GDELT as a news source. Default is true.true
X_BEARER_TOKENNoBearer token for the official X API. Required only if using X trends.
X_TRENDS_WOEIDNoWOEID for X trends; 1 means worldwide. Default is 1.1
ENABLE_X_TRENDSNoEnable X official trends API. It is automatically enabled when X_BEARER_TOKEN is set.
NEWS_USER_AGENTNoUser-Agent used when fetching news sources and robots.txt. Default is ChinaNewsMCP/0.3 (see README).ChinaNewsMCP/0.3
CUSTOM_RSS_FEEDSNoCustom RSS feeds as a JSON array of feed objects.
TOTAL_TIMEOUT_MSNoTotal timeout budget for one aggregation request in milliseconds. Default is 15000.15000
MCP_ALLOWED_HOSTSNoComma-separated allowed external Host headers for HTTP mode. Needed when behind a reverse proxy or using a domain.
ARTICLE_TIMEOUT_MSNoTimeout for article content requests in milliseconds. Default is 10000.10000
MAX_RESPONSE_BYTESNoMaximum response size accepted from an upstream source. Default is 2097152.2097152
STALE_CACHE_TTL_MSNoHow long stale search cache can be used when upstream fails, in milliseconds. Default is 1800000.1800000
ENABLE_HTML_SOURCESNoEnable People's Daily and Xinhua public page discovery. Default is true.true
MCP_ALLOWED_ORIGINSNoComma-separated allowed browser Origins for HTTP mode. Required when requests come from browsers.
PROVIDER_TIMEOUT_MSNoTimeout per individual provider in milliseconds. Default is 8000.8000
SEARCH_CACHE_TTL_MSNoIn-memory cache TTL for search results in milliseconds. Default is 300000.300000
DEFAULT_ARTICLE_CHARSNoDefault maximum characters returned for article extraction. Default is 12000.12000
ENABLE_BAIDU_TRENDINGNoEnable Baidu trending topics. Default is true.true
ENABLE_WEIBO_TRENDINGNoEnable Weibo trending topics. Default is true.true
TRENDING_CACHE_TTL_MSNoCache TTL for trending topics in milliseconds. Default is 120000.120000
TRENDING_STALE_TTL_MSNoHow long stale trending cache can be used on failure, in milliseconds. Default is 600000.600000
ENABLE_TOUTIAO_TRENDINGNoEnable Toutiao trending topics. Default is true.true
ENABLE_INTERNATIONAL_NEWSNoEnable NPR, France 24, and Sky News international RSS sources. Default is true.true

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_china_newsA

按关键词、分类、来源和时间范围查询中国相关中文新闻,返回规范化、去重且可引用的结果。

aggregate_china_newsA

查询新闻并按相似标题、关键词和时间邻近度形成事件簇;不生成无法追溯的事实。

search_international_newsB

查询 NPR、France 24、Sky News 和 GDELT 等国际来源,支持英文或中文结果,并返回规范化、去重且可引用的新闻。

aggregate_international_newsA

查询国际新闻并按相似标题、关键词和时间邻近度形成可追溯事件簇。

get_news_articleA

提取已注册来源或近期搜索结果页面的正文,遵守 robots.txt,且不绕过登录或付费墙。

get_trending_topicsA

查询微博热搜、今日头条热榜、百度热搜,保留各平台排名和热度,并识别跨平台相似话题。热度值仅能在同一平台内解释。

list_news_sourcesA

列出已配置新闻来源、热榜来源、支持分类和最近一次运行状态。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/xiedeming/ai-news-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server