Back to Home
donggongailv icon

weifangbus-mcp-server

by donggongailv

Overview

Acts as a Model Context Protocol (MCP) server providing an API wrapper for Weifang public bus real-time data and user authentication.

Installation

Run Command
java -jar build/libs/weifangbus-mcp-server-0.0.1-SNAPSHOT.jar

Environment Variables

  • TEST_USER_PHONE
  • TEST_USER_PASSWORD

Security Notes

Critical cryptographic keys (APP_KEY, SERVER_PRIVATE_KEY, SERVER_DG_KEY, MCHNTID) are hardcoded, which severely compromises the security of all cryptographic operations (SM2, SM3, SM4, HMAC-SHA256) if the codebase is exposed. The bus service client uses an insecure HTTP endpoint (http://122.4.254.30:8088), making traffic susceptible to eavesdropping and tampering. A function named `encryptedString` implements a simple character shift (Caesar cipher-like) and is used for parameters like RouteID and StationID, providing very weak security for these values.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2025-12-12

Tags

Bus trackingPublic transportAPI wrapperMCP serverKotlin