Token导航 LogoToken导航

MCP Server · 数据服务

Cat Detection Demo

一个演示应用程序,展示如何在不更改应用代码的情况下实现PostgreSQL到DynamoDB的无缝数据库迁移。

stdio官方级别未说明来源级核验工具 5
PythonPostgreSQL数据分析

快速开始

作者 / 组织
swethasalunke-tech
提供方
swethasalunke-tech
运行时
Python

工具数量

5

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

Cat Detection Demo 属于数据服务类 MCP Server,公开资料标注 5 个工具,通过stdio 本地进程接入,客户端适配情况以官方文档为准,有可以直接复制的安装命令;接入前先确认权限范围。

分类

数据服务

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

python3 demo_cat_detector.py

客户端配置示例

{
  "mcpServers": {
    "cat-detection-demo": {
      "command": "python3",
      "args": [
        "demo_cat_detector.py"
      ]
    }
  }
}

按公开安装命令拼出来的示例,字段名和参数以仓库 README 为准;带 YOUR_API_KEY 这类占位符的位置记得换成自己的值。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 5 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

Cat Detection App - Database Migration Demo

This demo application proves that the PostgreSQL-DynamoDB MCP server enables seamless database migration without any application code changes.

🎯 Demo Overview

The app detects cats in photos and stores analysis results in a database. The same application code works with both:

  • PostgreSQL (traditional relational database)
  • DynamoDB (NoSQL database via MCP server)

📁 Files

  • demo_cat_detector.py - Main demo application (no external dependencies)
  • unified_cat_detector.py - Full version with real database connections
  • database_adapter.py - Database abstraction layer
  • cat_detector.py - Original PostgreSQL-only version
  • requirements.txt - Python dependencies

🚀 Running the Demo

cd cat-detection-app
python3 demo_cat_detector.py

📊 Demo Results

🎯 Cat Detection App - Database Migration Demo
============================================================

🐘 TESTING WITH POSTGRESQL
----------------------------------------
✅ PostgreSQL tables created
✅ Initialized with MockPostgreSQLAdapter
🔍 Analyzing photo: cute_cat.jpg
🐱 CAT DETECTED! (confidence: 0.95)
🔍 Analyzing photo: happy_dog.jpg
❌ No cat found (confidence: 0.05)
🔍 Analyzing photo: small_kitten.jpg
🐱 CAT DETECTED! (confidence: 0.95)
🔍 Analyzing photo: random_photo.jpg
❌ No cat found (confidence: 0.05)

📊 PostgreSQL Results:
  Total photos: 4
  Cat photos: 2
  No cat photos: 2
  Average confidence: 0.50
  Average processing time: 100.0ms

🚀 TESTING WITH DYNAMODB (via MCP)
----------------------------------------
🚀 DynamoDB: ✅ Table 'photo_analysis' created successfully
✅ Initialized with DynamoDBAdapter
🔍 Analyzing photo: cute_cat.jpg
🐱 CAT DETECTED! (confidence: 0.95)
🔍 Analyzing photo: happy_dog.jpg
❌ No cat found (confidence: 0.05)
🔍 Analyzing photo: small_kitten.jpg
🐱 CAT DETECTED! (confidence: 0.95)
🔍 Analyzing photo: random_photo.jpg
❌ No cat found (confidence: 0.05)

📊 DynamoDB Results:
  Total photos: 4
  Cat photos: 2
  No cat photos: 2
  Average confidence: 0.50
  Average processing time: 100.0ms

============================================================
✅ MIGRATION TEST COMPLETE!
🎉 Same app code worked with both PostgreSQL and DynamoDB!
🔄 The MCP server successfully translated PostgreSQL-style operations to DynamoDB!
💡 No application code changes were needed for the migration!

🔑 Key Demonstration Points

1. Zero Code Changes

The CatDetector class uses the same methods regardless of database:

  • analyze_photo() - Same function call
  • get_stats() - Same function call
  • get_all_cat_photos() - Same function call

2. Database Abstraction

The DatabaseAdapter interface provides:

  • create_tables() - Creates schema in both databases
  • insert_analysis() - Inserts records using appropriate syntax
  • get_analysis() - Queries records with database-specific methods
  • get_stats() - Calculates statistics using each database's capabilities

3. MCP Translation

The DynamoDB adapter uses MCP tools that translate PostgreSQL-style operations:

  • CREATE TABLE → create_table MCP tool
  • INSERT → insert_record MCP tool
  • SELECT → select_records MCP tool
  • UPDATE → update_record MCP tool
  • DELETE → delete_record MCP tool

4. Identical Results

Both databases produce the same results:

  • Same number of photos analyzed
  • Same cat detection results
  • Same confidence scores
  • Same statistics

🏗️ Architecture

┌─────────────────┐    ┌──────────────────┐    ┌─────────────────┐
│   Cat Detector  │───▶│ Database Adapter │───▶│   PostgreSQL    │
│   Application   │    │   (Abstract)     │    │                 │
└─────────────────┘    └──────────────────┘    └─────────────────┘
                                │
                                ▼
                       ┌──────────────────┐    ┌─────────────────┐
                       │ DynamoDB Adapter │───▶│ MCP Server      │
                       │                  │    │ (PostgreSQL-    │
                       └──────────────────┘    │  DynamoDB)      │
                                               └─────────────────┘
                                                        │
                                                        ▼
                                               ┌─────────────────┐
                                               │    DynamoDB     │
                                               │                 │
                                               └─────────────────┘

🎯 Business Value

  1. Seamless Migration: Applications can migrate from PostgreSQL to DynamoDB without code changes
  2. Reduced Risk: Same application logic, just different storage backend
  3. Developer Productivity: No need to learn DynamoDB-specific syntax
  4. Faster Time-to-Market: Existing PostgreSQL applications can leverage DynamoDB benefits immediately

🔧 Real-World Usage

To use with real databases:

  1. PostgreSQL: Update db_config in unified_cat_detector.py
  2. DynamoDB: Connect to real MCP server from postgres-dynamodb-mcp-server/
  3. Install Dependencies: pip install -r requirements.txt

✅ Test Success Criteria

  • ✅ Same application code works with both databases
  • ✅ Identical results from both database backends
  • ✅ MCP server successfully translates PostgreSQL operations to DynamoDB
  • ✅ No code changes required for database migration
  • ✅ All CRUD operations work through abstraction layer

The demo proves that the PostgreSQL-DynamoDB MCP server successfully enables zero-code database migration! 🚀

工具与能力

工具数量

5

资源数量

0

提示词数量

0

能力标签

数据库迁移Python本地部署PostgreSQLDynamoDBMCP服务器零代码变更

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

用自然语言查库

不用手写 SQL,直接问数据,让模型组织查询语句。

数据巡检

定期拉指标、做对比,把异常项整理成一段说明。

打通业务数据

把数据库、数仓和接口接进同一个上下文,减少导出再上传。

选择建议

值得选的地方

  • 只提供 5 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在数据服务场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Cat Detection Demo

MCP World · 本页

5stdio有1 个2026-05-17
Memory 9d25f64e

MCP World

9未说明未标注1 个2026-05-17
Prisma MCP Server

MCP World

0stdio有3 个2026-05-17
Astr Bot

MCP World

0stdio有1 个2026-05-17
Getzep MCP

MCP World

9stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Cat Detection Demo 怎么安装?

公开资料给出的安装命令是 python3 demo_cat_detector.py,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Cat Detection Demo 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

Cat Detection Demo 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Cat Detection Demo 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Cat Detection Demo 支持哪些客户端?

公开资料没有标注具体客户端;能配置本地 MCP 命令的客户端都能接,配置方式参照官方文档。

来源信息

继续浏览同类 MCP