手搓MCP样例,使用SSE模式,访问本地数据。从Hosts到server全部代码演示。
Connect MCP Host Client Server SSE to Claude, Cursor or any other MCP client and it stops being a tab you switch to. 手搓MCP样例,使用SSE模式,访问本地数据。从Hosts到server全部代码演示。. The mcp host client server sse mcp server is what makes that connection.
基于MCP(Model Context Protocol)协议实现的自然语言SQL数据库查询系统,支持通过大语言模型将自然语言转换为SQL查询。本项目展示了如何使用MCP协议构建服务器-客户端架构,并集成OpenAI实现智能查询功能。
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
SQLite — OpenAI APIStarlette — Server-Sent Events (SSE)age — INTEGERemail — TEXTuser_id — INTEGERproduct_name — TEXTprice — REALorder_date — TEXTInstallation goes through your MCP client rather than a global install: point it at openai on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP Host Client Server SSE's toolset — SQLite, Starlette, age and 5 more — is a fair guide to whether it matches your workflow. It is maintained by HanShan006; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against MCP Host Client Server SSE's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| SQLite | OpenAI API |
| Starlette | Server-Sent Events (SSE) |
| age | INTEGER |
| TEXT | |
| user_id | INTEGER |
| product_name | TEXT |
| price | REAL |
| order_date | TEXT |
{
"mcpServers": {
"host-client-server-sse": {
"command": "uvx",
"args": ["openai"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.