mcp-ui
基于MCP(Model Context Protocol)的智能聊天应用,支持Web和桌面环境。集成OpenAI/Anthropic API,提供MCP服务器的所有工具能力。简洁现代的UI设计,支持跨平台部署。
claude mcp add --transport stdio machaojin1917939763-mcp-ui node mcp_server.js \ --env VITE_API_KEY="your_vite_api_key" \ --env OPENAI_API_KEY="your_openai_api_key" \ --env MCP_SERVER_PORT="3001" \ --env ANTHROPIC_API_KEY="your_anthropic_api_key"
How to use
mcp-ui is a Vue-based MCP-enabled chat application with an integrated MCP backend. It supports interaction with external tools and services through the Model Context Protocol (MCP), enabling AI agents to call capabilities such as browser automation, weather lookups, news searches, and file operations directly from the chat interface. The backend MCP server handles tool definitions, routing of tool calls, and integration with major models like OpenAI and Anthropic. To use it locally, run the MCP backend alongside the frontend, then configure your API providers (OpenAI or Anthropic) and the MCP server port. The tools exposed by MCP can be invoked by the AI during conversations to fetch real-time data or perform tasks, making the chat experience dynamic and capable of practical automation. The app supports web and desktop (Electron) environments, with separate commands to launch the frontend and the MCP backend as needed.
How to install
Prerequisites:
- Node.js v16.0.0+ (and npm v8.0.0+)
- A supported MCP-enabled environment (Web + Electron desktop options)
- Install dependencies
npm install
- Prepare environment configuration
- Copy the example environment file to a real one and fill in keys
cp .env.example .env
- Edit .env to include necessary API keys and settings, for example:
VITE_API_KEY=your_api_key_here
VITE_MODEL_PROVIDER=openai # or anthropic
MCP_SERVER_PORT=3001 # MCP服务器端口
- Start the MCP backend server (required alongside the frontend)
# Start MCP backend service
npm run mcp:server
- Run the frontend (Web or Desktop)
- Web:
npm run dev
- Desktop (Electron):
npm run electron:dev
Optional: Build for production
- Web:
npm run build
- Desktop:
npm run electron:build
Additional notes
Tips and notes:
- Ensure MCP_SERVER_PORT does not conflict with other services. The default is 3001 as shown in the example.
- Store API keys securely; avoid committing .env files to version control.
- If tools fail to respond, check MCP backend logs and confirm that tool definitions exist on the server (mcp_server.js).
- When using the desktop Electron mode, both the frontend and MCP backend can be started in parallel via separate terminals as shown in the README.
- The app integrates OpenAI and Anthropic models; configure the provider and corresponding API keys in the environment, then select the desired provider in the settings UI.
- MCP tools mentioned include browser automation, weather queries, news search, and file operations; additional tools can be added by extending mcp_server.js and reloading the MCP service.
Related MCP Servers
mcp-for-beginners
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
ReActMCP
ReActMCP is a reactive MCP client that empowers AI assistants to instantly respond with real-time, Markdown-formatted web search insights powered by the Exa API.
spring-ai
From Java Dev to AI Engineer: Spring AI Fast Track
furi
CLI & API for MCP management
mcp-lite-dev
共学《MCP极简开发》项目代码
unity-editor
An MCP server and client for LLMs to interact with Unity Projects