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
java -jar build/libs/weifangbus-mcp-server-0.0.1-SNAPSHOT.jarEnvironment 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
infobip-openapi-mcp
Exposes any OpenAPI documented HTTP API as a Model Context Protocol (MCP) server for AI agents, with support for mock mode and authentication.
mcp-server-playground
A playground and reference implementation for a Model Context Protocol (MCP) server, featuring streamable HTTP transport, OAuth proxy for third-party authorization servers like Auth0, and stateful session management.
MCP-Client-Host-Java
An MCP (Model Context Protocol) client that acts as a server to the MCP host, managing connections to various external MCP servers (tools) and orchestrating tool discovery and execution for AI assistants.
mcp-oauth
Provider-agnostic OAuth 2.1 Authorization Server library for Model Context Protocol (MCP) servers, enabling URL-based client identifiers with dynamic metadata discovery (CIMD).