经 AI Skill Hub 精选评估,NexusX 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
NexusX 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
NexusX 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/KLR-Pattern/nexusx
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"nexusx": {
"command": "npx",
"args": ["-y", "nexusx"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 NexusX 执行以下任务... Claude: [自动调用 NexusX MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"nexusx": {
"command": "npx",
"args": ["-y", "nexusx"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Write SQLModel classes. Get a complete API.
Define your entities once in SQLModel, and you get GraphQL, REST, and MCP — no repeated data models.
pip install nexusx
pip install nexusx[fastmcp] # with MCP support
Requires Python ≥ 3.10.
Step 1 — Entities + GraphQL
from sqlmodel import SQLModel, Field, Relationship, select
from nexusx import query, mutation, GraphQLHandler
class User(SQLModel, table=True):
id: int | None = Field(default=None, primary_key=True)
name: str
posts: list["Post"] = Relationship(back_populates="author")
@query
async def get_users(cls, limit: int = 10) -> list["User"]:
async with get_session() as session:
return (await session.exec(select(cls).limit(limit))).all()
class Post(SQLModel, table=True):
id: int | None = Field(default=None, primary_key=True)
title: str
author_id: int = Field(foreign_key="user.id")
author: User | None = Relationship(back_populates="posts")
handler = GraphQLHandler(base=SQLModel, session_factory=async_session)
Relationships resolve automatically — DataLoader batches queries, one SQL per level:
{ userGetUsers(limit: 5) { name posts { title } } }
Step 2 — Typed REST with DTOs
from nexusx import DefineSubset, ErManager
class UserDTO(DefineSubset):
__subset__ = (User, ("id", "name"))
class PostDTO(DefineSubset):
__subset__ = (Post, ("id", "title", "author_id"))
author: UserDTO | None = None # auto-loaded — field name matches relationship
Resolver = ErManager(base=SQLModel, session_factory=async_session).create_resolver()
dtos = await Resolver().resolve(posts)
DefineSubset is GraphQL field selection in Python — declare which fields you want, get a typed DTO. Relationship fields auto-load when the name matches. Add resolve_* for custom loading, post_* for derived fields.
Step 3 — MCP + REST from business logic
```python from nexusx import UseCaseService, UseCaseAppConfig, create_use_case_mcp_server, create_use_case_router
class SprintService(UseCaseService): @query async def list_sprints(cls) -> list[SprintSummary]: """Get all sprints with task counts.""" ...
config = UseCaseAppConfig(name="project", services=[SprintService])
git clone https://github.com/allmonday/nexusx.git && cd nexusx && bash start_all.sh
| Port | Mode |
|---|---|
| 8000 | GraphQL playground |
| 8001 | Core API (REST + DTOs) |
| 8005 | Paginated GraphQL |
| 8006 | UseCase MCP (4-layer) |
| 8007 | UseCase FastAPI (REST) |
| 8008 | Voyager visualization |
| nexusx | Strawberry | FastAPI + SQLModel | FastMCP | |
|---|---|---|---|---|
| GraphQL auto-gen | ✓ | ✓ | — | — |
| REST + OpenAPI | ✓ | — | ✓ (manual) | — |
| MCP | ✓ | — | — | ✓ |
| N+1 prevention | ✓ DataLoader | manual | — | — |
| Relationship auto-loading | ✓ implicit | manual | — | — |
NexusX是一个有潜力的开源MCP工具,值得关注
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:NexusX 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | nexusx |
| 原始描述 | 开源MCP工具:“A declarative SQLModel-based data assembly framework”。⭐7 · Python |
| Topics | aiautobuildgraphqlmcpsqlmodelpython |
| GitHub | https://github.com/KLR-Pattern/nexusx |
| License | MIT |
| 语言 | Python |
收录时间:2026-06-09 · 更新时间:2026-06-09 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端