这是一个用于Tinder API的模型上下文协议(MCP)服务器,用TypeScript实现。
此MCP服务器提供了一个与Tinder API交互的标准接口。它处理身份验证、请求处理、速率限制、缓存和错误处理,使得构建集成Tinder的应用程序变得更加容易。
服务器遵循模块化架构,包括以下组件:
克隆仓库:
git clone https://github.com/yourusername/tinder-api-mcp-server.git
cd tinder-api-mcp-server
安装依赖:
npm install
根据.env.example创建一个.env文件:
cp .env.example .env
使用您的配置设置编辑.env文件。
启动开发服务器:
npm run dev
构建项目:
npm run build
运行生产服务器:
npm start
运行测试:
npm test
POST /mcp/auth/sms/send: 发送短信验证码POST /mcp/auth/sms/validate: 验证短信验证码POST /mcp/auth/facebook: 使用Facebook进行身份验证POST /mcp/auth/captcha: 验证CAPTCHAPOST /mcp/auth/refresh: 刷新身份验证令牌GET /mcp/user/:userId: 获取用户资料GET /mcp/user/recommendations: 获取用户推荐PUT /mcp/user/profile: 更新用户资料GET /mcp/user/matches: 获取用户匹配POST /mcp/interaction/like/:targetUserId: 喜欢一个用户POST /mcp/interaction/superlike/:targetUserId: 超级喜欢一个用户POST /mcp/interaction/pass/:targetUserId: 跳过一个用户POST /mcp/interaction/boost: 提升个人资料可见度POST /mcp/interaction/message/:matchId: 发送消息GET /mcp/interaction/messages/:matchId: 获取匹配的消息POST /mcp/tools: 执行MCP工具GET /mcp/resources/:resourceId: 访问MCP资源GET /mcp/info: 获取服务器信息服务器提供了以下MCP工具:
authenticate_sms: 使用短信进行用户身份验证authenticate_facebook: 使用Facebook进行用户身份验证verify_captcha: 验证CAPTCHA响应like_user: 喜欢一个用户资料super_like_user: 超级喜欢一个用户资料pass_user: 跳过一个用户资料boost_profile: 提升用户资料可见度get_user_profile: 获取用户资料信息get_recommendations: 获取潜在匹配clear_cache: 清除缓存get_rate_limits: 获取速率限制信息服务器提供了以下MCP资源:
api-docs: API文档server-status: 服务器状态信息MIT