MCP Chat Widget MCP 伺服器 | PlugMCP
跳到正文 ChatMCP Widgets
A lightweight self-hosted platform for hosting and configuring MCP-enabled chat widgets remotely. Deploy, create and manage AI chat widgets to embed on your website. Add an MCP client toyour websites, dashboards, and applications with access to advanced AI models and external tools.
Configure, host and embed MCP-enabled chat widgets for your website or product. Remotely configure and embed your agents anywhere.
把任意工具接入任意代理。面向非開發者的 MCP 伺服器目錄;閘道承載流量,n8n 承載應用。
產品
目錄
開發者
公司
┌─────────────────────────────────────────┐
│ │
│ ChatMCP Widgets × │
│ ┌─────────────────────────────────────┐ │
│ │ AI Assistant │ │
│ │ │ │
│ │ Hello! How can I help you today? │ │
│ │ │ │
│ │ ┌─────────────────────────────────┐ │ │
│ │ │ Tell me about MCP tools. │ │ │
│ │ └─────────────────────────────────┘ │ │
│ │ │ │
│ │ MCP tools provide powerful │ │
│ │ capabilities like file access, │ │
│ │ API integrations, database │ │
│ │ connections, and more. │ │
│ │ │ │
│ └─────────────────────────────────────┘ │
│ ┌─────────────────────────────────────┐ │
│ │ Message ▶ │ │
│ └─────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────┘
🌟 Features
Customizable Widgets : Create chat widgets with custom positions, sizes, and AI providers.
Full Screen Chat : Integrate a full screen chat experience that fills its parent container.
MCP Tool Support : Connect to MCP servers to give your chat widgets access to powerful tools like file access, API integrations, and more.
Multiple Providers : Choose between OpenAI and Anthropic models for each widget.
Conversation History : Chat history is automatically saved for each session. Users can continue conversations where they left off.
Easy Integration : Simple embed code to add widgets to any website or application.
Responsive Design : Chat widgets work seamlessly on desktop and mobile devices.
📋 Requirements
Node.js 18.x or later
PostgreSQL database
OpenAI API key (for OpenAI provider)
Anthropic API key (for Anthropic provider)
MCP server endpoints (optional, for tool capabilities)
🚀 Getting Started
Installation
Clone the repository:
git clone https://github.com/yourusername/chatmcp-widgets.git
cd chatmcp-widgets
Install dependencies:
npm install
# or
yarn install
# or
pnpm install
Set up environment variables:
Create a .env.local file in the root directory with the following variables:
DATABASE_URL="postgresql://user:password@localhost:5432/chatmcp"
OPENAI_API_KEY="your-openai-api-key"
ANTHROPIC_API_KEY="your-anthropic-api-key"
NEXTAUTH_SECRET="your-auth-secret"
NEXTAUTH_URL="http://localhost:3000"
Database Setup This project uses Drizzle ORM with PostgreSQL. The database schema is defined in lib/db/schema.ts.
# Generate migration files based on your schema
pnpm db:generate
# Push schema changes directly to the database (for development)
pnpm db:push
# Run migrations
pnpm db:migrate
# Open Drizzle Studio to view and edit your database
pnpm db:studio
Running the Application
Start the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 in your browser.
🧰 Usage
Creating a Chat Widget
Navigate to the Admin dashboard at /admin
Click "New Widget" to create a new chat widget
Configure the following settings:
Name: A descriptive name for your widget
Description: (Optional) A brief description
Default Provider: Choose between OpenAI and Anthropic
Position: Select where the widget should appear on the page
Size: Choose the size of the chat widget
System Prompt: Define the behavior and capabilities of your assistant
MCP Server Configuration To enable tool capabilities, you can connect your widget to one or more MCP servers:
In the widget creation/edit form, add a new MCP server
Configure the server settings:
Server Name: A descriptive name for the server
Server URL: The endpoint URL for your MCP server
Server Type: Choose between SSE (Server-Sent Events) or HTTP
Default Server: Set as default if you have multiple servers
Testing Your Widget
Navigate to the Demo page at /demo
Enter your widget ID (found in the admin dashboard)
Click "Load Widget" to test your chat widget in real-time
Embedding Your Widget You have two options for embedding your chat widget on your website:
Option 1: Traditional Script Embed Add the following code to your HTML:
<script src="https://your-chatmcp-domain.com/widget.js" defer></script>
<script>
window.addEventListener('load', function() {
ChatMCPWidget.init({
widgetId: YOUR_WIDGET_ID,
});
});
</script>
Replace YOUR_WIDGET_ID with the ID of your chat widget from the admin dashboard.
Option 2: Web Component (Recommended) Use the chat widget as a standard web component:
<script src="https://your-chatmcp-domain.com/dist/mcp-chat-widget.js"></script>
<mcp-chat-widget
widget-id="123"
name="My Chat Widget"
description="A customizable chat widget"
position="bottom-right"
size="md">
</mcp-chat-widget>
The web component approach offers several advantages:
Standard HTML element that works with any framework
Declarative configuration through HTML attributes
Better encapsulation and isolation
Easier to integrate with modern web frameworks
Tailwind CSS styles encapsulated in Shadow DOM
The web component is built using @r2wc/react-to-web-component , which converts React components to custom elements with proper prop handling.
To build the web component:
npm run build:webcomponent
This will generate the web component bundle in public/dist/mcp-chat-widget.js.
For a live example, visit /webcomponent-example in your browser or check out the standalone HTML example at /webcomponent-example.html.
🧩 Architecture ChatMCP Widgets is built with:
Next.js : React framework for server-rendered applications
TypeScript : For type safety and better developer experience
Drizzle ORM : For database interactions with PostgreSQL
shadcn/ui : Component library for modern UI elements
Tailwind CSS : Utility-first CSS framework for styling
📝 License
🤝 Contributing Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (git checkout -b feature/amazing-feature)
Commit your changes (git commit -m 'Add some amazing feature')
Push to the branch (git push origin feature/amazing-feature)
Open a Pull Request
📞 Support For support or questions, please open an issue in the GitHub repository or contact the maintainers.
Using the FullScreenChat Component For applications that need a chat interface that fills the entire container rather than a floating widget, you can use the FullScreenChat component:
import { FullScreenChat } from "chatmcp-widgets/components";
function ChatPage() {
return (
<div className="h-screen">
<FullScreenChat
widgetId={123}
initialConfig={{
name: "Full Screen Assistant",
description: "AI assistant that fills the entire container",
systemPrompt: "You are a helpful assistant...",
mcpServers: [
{
name: "My MCP Server",
url: "https://your-mcp-server.com",
isDefault: true
}
]
}}
/>
</div>
);
}
The FullScreenChat component accepts the same configuration options as the widget but is designed to adapt to the size of its parent container. This is ideal for applications where you want to dedicate a full page or section to the chat interface rather than having a floating widget.
To see a live example of the FullScreenChat component, visit /full-screen-chat-example in your browser.
Rea Reverse engineer anything with agents, from app behavior down to native binaries. Scrapling 🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and trick Headroom Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server. TrendRadar ⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构 Markdown Here Google Chrome, Firefox, and Thunderbird extension that lets you write email in Markdown and render it before sending. Gmail Read, search, and send Gmail messages. Manage drafts, threads, and labels; reply, forward, archive, trash, report spam, and triage your inbox. Nanobot Ultra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat apps Nanoclaw A lightweight alternative to OpenClaw that runs in containers for security. Connects to WhatsApp, Telegram, Slack, Discord, Gmail and other messaging apps,, has memory, scheduled jobs, and runs direct Fastmcp 🚀 The fast, Pythonic way to build MCP servers and clients. UnClick AI agent tool marketplace. 60+ tools for social, e-commerce, accounting, messaging, media, and more. Search and call tools for Slack, Reddit, Discord, Shopify, Xero, Bluesky, TMDB, Steam, and 50+ more OneSignal OneSignal is a customer engagement platform that lets you send targeted push notifications, emails, SMS, and in-app messages, manage audiences, and track campaign performance.
With the OneSignal MCP, LangBot Production-grade platform for building agentic IM bots - 生产级多平台智能机器人开发平台/ Agent、知识库编排、插件系统 / Bots for Discord / Slack / LINE / Telegram / WeChat(企业微信, 企微智能机器人, 公众号) / 飞书 / 钉钉 / QQ / Matrix e.g. Integr Communication MCP 伺服器 最佳 Communication MCP 伺服器 agent-browser Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web a pptx Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting te
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
如何安裝 MCP Chat Widget? 在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
MCP Chat Widget 需要 API 金鑰嗎? 這筆記錄未列出必要的環境變數。
MCP Chat Widget 使用哪種傳輸方式? MCP Chat Widget 透過 stdio 在本機執行。
MCP Chat Widget 上次檢查是什麼時候? 上次檢查時間:2026-10-28。 Configure, host and embed MCP-enabled chat widgets for your website or product. Remotely configure and embed your agents anywhere.
工具
0 / 10