- House Price
House Price
Content
🏙️ mcp-cih
🧩 A Model Context Protocol (MCP) server & CLI tool for querying average house prices by city name.
支持 中文与英文城市名 查询房价均价(元/㎡),提供 CLI 命令行工具 与 MCP stdio 模式。
✨ 功能概述
| 功能项 | 说明 |
|---|---|
| 🌆 城市查询 | 输入城市名称,返回均价(元/㎡) |
| 🧠 MCP 支持 | 可在支持 MCP 的客户端(如 ChatGPT MCP、ModelScope、MCP IDE)中调用 |
| 💻 CLI 工具 | 可直接在命令行中执行 |
| 📊 示例数据 | 默认使用本地 JSON 数据,支持接入真实 API |
⚙️ 环境要求
- Node.js ≥ 18
- npm ≥ 8(推荐使用
pnpm) - 已安装依赖
@modelcontextprotocol/sdk
🚀 快速开始
1️⃣ 安装依赖
npm install
2️⃣ 构建项目
npm run build
3️⃣ CLI 模式示例
node dist/cli.js --city 北京
node dist/cli.js --city shanghai
node dist/cli.js --list
输出示例:
{
"city": "北京",
"normalizedCity": "beijing",
"average": 73218,
"currency": "CNY",
"unit": "元/㎡",
"updatedAt": "2025-01-01T00:00:00Z",
"source": "示例数据源",
"confidence": 0.95
}
4️⃣ 启动 MCP Server
node dist/cli.js --stdio
此模式可被 ChatGPT、MCP IDE 等客户端直接识别与调用。
🧠 MCP 工具定义
| 属性 | 值 |
|---|---|
| 工具名 | get_city_avg_house_price |
| 输入参数 | { "city": string } |
| 输出 | 城市均价及元数据的 JSON 对象 |
示例请求:
{
"input": { "city": "上海" }
}
示例响应:
{
"city": "上海",
"normalizedCity": "shanghai",
"average": 68500,
"currency": "CNY",
"unit": "元/㎡",
"updatedAt": "2025-01-01T00:00:00Z",
"source": "示例数据源",
"confidence": 0.92
}
🧩 MCP 配置文件(.mcp.json)
为便于 MCP 客户端识别和调用,请在项目根目录中添加 .mcp.json 文件:
{
"mcpServers": {
"mcp-cih-test": {
"command": "npx",
"args": ["-y", "mcp-cih-test", "--stdio"]
}
}
}
📦 package.json 配置要求
{
"name": "mcp-cih-test",
"version": "0.1.0",
"type": "module",
"main": "dist/cli.js",
"bin": { "mcp-cih": "dist/cli.js" },
"mcp": { "entry": "dist/cli.js" },
"scripts": {
"build": "tsc",
"start": "node dist/cli.js --stdio"
}
}
☁️ 发布与上架
本项目支持多平台上架,文档位于 publish/*/README.md:
| 平台 | 路径 | 说明 |
|---|---|---|
| 📦 NPM | publish/npm/README.md | 发布命令行工具 |
| 🌐 MCPServers.org | publish/mcpservers/README.md | 提交 MCP 服务 |
| ☁️ 腾讯云开发 | publish/tencent/README.md | 云端部署说明 |
| 🧠 ModelScope / 百炼 / 千帆 | publish/modelscope/README.md | AI 平台部署 |
| 🔍 百度开放平台 | publish/baidu/README.md | 搜索能力集成 |
🧾 License
MIT © 2025 Your Name or Organization
💬 联系与支持
- 作者:yqjqwy
- 反馈:GitHub Issues
✅ 提交描述(用于 MCP 上架)
名称: 城市房价均价查询
描述: 输入城市名称(中文/英文),返回最新房价均价(元/㎡)。适用于智能助理、对话引擎、AI 数据接口等场景。
标签: 房价、数据查询、城市信息、MCP、CLI、AI 工具
Server Config
{
"mcpServers": {
"mcp-cih-test": {
"command": "npx",
"args": [
"-y",
"mcp-cih-test",
"--stdio"
]
}
}
}Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Playwright McpPlaywright MCP server
DeepChatYour AI Partner on Desktop
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
CursorThe AI Code Editor
Tavily Mcp
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
ChatWiseThe second fastest AI chatbot™
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Amap Maps高德地图官方 MCP Server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server