Back to Home
choseongje66 icon

public-api-mcp-application

by choseongje66

Overview

Provides a web-based chat client for interacting with public data via an MCP (Multi-Cloud Platform) and LLM.

Installation

Run Command
cd appserver && npm run dev

Environment Variables

  • CORS_ORIGIN
  • JWT_SECRET
  • MCP_BASE_URL
  • PORT
  • DATABASE_NAME
  • DATABASE_USER
  • DATABASE_PASSWORD

Security Notes

CRITICAL: The backend uses a hardcoded fallback JWT_SECRET 'devsecret' if the `JWT_SECRET` environment variable is not explicitly set. This is a severe vulnerability that makes the authentication easily bypassable. JWT tokens are stored in the browser's localStorage, which is susceptible to Cross-Site Scripting (XSS) attacks if other parts of the frontend are vulnerable. While the frontend uses `ReactMarkdown` with `rehype-highlight` for rendering LLM responses, direct streaming of potentially untrusted LLM output from the MCP to the client could theoretically pose risks if the markdown rendering or sanitization is not robust against all forms of injection, though `ReactMarkdown` typically offers good default protection.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens200
Stars0
Forks0
Last Update2025-11-19

Tags

ChatPublic DataLLM IntegrationWeb ApplicationNode.js