프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. Google로 로그인하면 리뷰를 쓸 수 있어요.프로토타입 · 30분마다 업데이트
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

Boyce

제작자: boyce-io버전 0.1.1i★ 1i내 컴퓨터에서 실행
레지스트리 이름io.github.boyce-io/boyce

설치 방법

What it does

Deterministic SQL compiler for AI agents. Your agent stops guessing SQL.

  • Connects 내 컴퓨터에서 실행
  • Account or key Needs ANTHROPIC_API_KEY · 1 setting to fill in (BOYCE_DB_URL)
  • Category 데이터베이스 및 데이터셋

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

검사 2/3 통과 · 내 컴퓨터에서 실행돼요 · ✓ 명령 확인 2026년 11월 14일

먼저: 어떤 AI를 쓰시나요?

쓰는 앱을 고르면 아래에 단계가 나옵니다.

Claude에 연결할 수 있지만 먼저 준비가 필요해요

Boyce 키가 필요해요 (제작자 사이트에서 만들기) · 설정 1개 입력 필요 (BOYCE_DB_URL) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요

  1. Python (uv) 설치

    한 번만 하면 Python (uv)가 필요한 모든 서버에 쓸 수 있어요

    Python (uv) 다운로드 페이지 열기 ↗

  2. Boyce에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 요금과 무료 요금제는 제작자 사이트에서 확인하세요.

    Boyce 사이트 열기 ↗

  3. 설정 1개 입력

    이것은 프로그램 설정이며 키가 아닙니다. 가입할 필요 없이 제작자 설명대로 입력하세요.

    • BOYCE_DB_URL PostgreSQL or Redshift connection string. Optional — tools work without live DB; required for live profiling and EXPLAIN pre-flight.

    설명은 아직 영어 원문입니다.

  4. 컴퓨터용 Claude 앱 설정 파일 열기

    SettingsDeveloperEdit Config

  5. 이 설정을 붙여 넣고 저장

    {
      "mcpServers": {
        "boyce": {
          "command": "uvx",
          "args": [
            "boyce"
          ],
          "env": {
            "BOYCE_DB_URL": "your-value",
            "ANTHROPIC_API_KEY": "your-value"
          }
        }
      }
    }

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  6. Claude를 끄고 다시 열기

  7. 해 보기

    Boyce을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude가 Boyce을 쓰고 있다고 하거나 답에 Boyce 도구 이름이 나오면 연결된 거예요

추가 설정 1개 (입력하지 않아도 사용 가능)

위 명령은 이 값들 없이도 동작합니다. 바꾸고 싶을 때만 제작자 설명대로 추가하세요.

  • BOYCE_PROVIDER LLM provider for the NL→StructuredFilter planner (anthropic, openai). MCP hosts using their own model should not set this — the host's model does the reasoning and Boyce receives a pre-built Structur…

설명은 아직 영어 원문입니다.

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

ChatGPT는 아직 Boyce에 연결할 수 없어요

Boyce는 내 컴퓨터에 설치해서 쓰지만 ChatGPT는 웹에서 도는 서버만 연결할 수 있어요

대신 이렇게 할 수 있어요

A · Boyce에 연결되는 앱 쓰기

  • Boyce 키가 필요해요 (제작자 사이트에서 만들기) · 설정 1개 입력 필요 (BOYCE_DB_URL) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요
  • Boyce 키가 필요해요 (제작자 사이트에서 만들기) · 설정 1개 입력 필요 (BOYCE_DB_URL) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)
  • Boyce 키가 필요해요 (제작자 사이트에서 만들기) · 설정 1개 입력 필요 (BOYCE_DB_URL) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)
  • Boyce 키가 필요해요 (제작자 사이트에서 만들기) · 설정 1개 입력 필요 (BOYCE_DB_URL) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)

B · 데이터베이스 및 데이터셋에서 ChatGPT에 연결되는 다른 서버

같은 분류에서 많이 쓰는 것 중 키 없이 주소만으로 연결되는 것을 골랐어요

Claude Code에 연결할 수 있지만 먼저 준비가 필요해요

Boyce 키가 필요해요 (제작자 사이트에서 만들기) · 설정 1개 입력 필요 (BOYCE_DB_URL) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)

  1. Python (uv) 설치

    한 번만 하면 Python (uv)가 필요한 모든 서버에 쓸 수 있어요

    Python (uv) 다운로드 페이지 열기 ↗

  2. Boyce에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 요금과 무료 요금제는 제작자 사이트에서 확인하세요.

    Boyce 사이트 열기 ↗

  3. 설정 1개 입력

    이것은 프로그램 설정이며 키가 아닙니다. 가입할 필요 없이 제작자 설명대로 입력하세요.

    • BOYCE_DB_URL PostgreSQL or Redshift connection string. Optional — tools work without live DB; required for live profiling and EXPLAIN pre-flight.

    설명은 아직 영어 원문입니다.

  4. 터미널 열기

    Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기

  5. 이 명령을 붙여 넣고 Enter

    claude mcp add --scope user boyce --env BOYCE_DB_URL=your-value --env ANTHROPIC_API_KEY=your-value -- uvx boyce

    Enter 전에 “your-value”를 내 키로 바꾸세요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  6. Claude Code에서 /mcp 입력

    Boyce이 목록에 있고 연결됨으로 보이면 돼요

  7. 해 보기

    Boyce을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude Code가 Boyce을 쓰고 있다고 하거나 답에 Boyce 도구 이름이 나오면 연결된 거예요

추가 설정 1개 (입력하지 않아도 사용 가능)

위 명령은 이 값들 없이도 동작합니다. 바꾸고 싶을 때만 제작자 설명대로 추가하세요.

  • BOYCE_PROVIDER LLM provider for the NL→StructuredFilter planner (anthropic, openai). MCP hosts using their own model should not set this — the host's model does the reasoning and Boyce receives a pre-built Structur…

설명은 아직 영어 원문입니다.

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Cursor에 연결할 수 있지만 먼저 준비가 필요해요

Boyce 키가 필요해요 (제작자 사이트에서 만들기) · 설정 1개 입력 필요 (BOYCE_DB_URL) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)

  1. Python (uv) 설치

    한 번만 하면 Python (uv)가 필요한 모든 서버에 쓸 수 있어요

    Python (uv) 다운로드 페이지 열기 ↗

  2. Boyce에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 요금과 무료 요금제는 제작자 사이트에서 확인하세요.

    Boyce 사이트 열기 ↗

  3. 설정 1개 입력

    이것은 프로그램 설정이며 키가 아닙니다. 가입할 필요 없이 제작자 설명대로 입력하세요.

    • BOYCE_DB_URL PostgreSQL or Redshift connection string. Optional — tools work without live DB; required for live profiling and EXPLAIN pre-flight.

    설명은 아직 영어 원문입니다.

  4. 이 버튼으로 Cursor 열기

    Cursor에서 열기

    Cursor가 설치를 확인하면 Install을 누르세요

  5. 키 입력

    Boyce 설정에서 ANTHROPIC_API_KEY, BOYCE_DB_URL가 비어 있어요. 내 키를 넣고 저장하세요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  6. Cursor에서 AI 채팅을 Agent 모드로 열기

  7. 해 보기

    Boyce을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Cursor가 Boyce을 쓰고 있다고 하거나 답에 Boyce 도구 이름이 나오면 연결된 거예요

추가 설정 1개 (입력하지 않아도 사용 가능)

위 명령은 이 값들 없이도 동작합니다. 바꾸고 싶을 때만 제작자 설명대로 추가하세요.

  • BOYCE_PROVIDER LLM provider for the NL→StructuredFilter planner (anthropic, openai). MCP hosts using their own model should not set this — the host's model does the reasoning and Boyce receives a pre-built Structur…

설명은 아직 영어 원문입니다.

메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

VS Code에 연결할 수 있지만 먼저 준비가 필요해요

Boyce 키가 필요해요 (제작자 사이트에서 만들기) · 설정 1개 입력 필요 (BOYCE_DB_URL) · 먼저 컴퓨터에 Python (uv)를 설치하세요 (한 번만)

  1. Python (uv) 설치

    한 번만 하면 Python (uv)가 필요한 모든 서버에 쓸 수 있어요

    Python (uv) 다운로드 페이지 열기 ↗

  2. Boyce에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 요금과 무료 요금제는 제작자 사이트에서 확인하세요.

    Boyce 사이트 열기 ↗

  3. 설정 1개 입력

    이것은 프로그램 설정이며 키가 아닙니다. 가입할 필요 없이 제작자 설명대로 입력하세요.

    • BOYCE_DB_URL PostgreSQL or Redshift connection string. Optional — tools work without live DB; required for live profiling and EXPLAIN pre-flight.

    설명은 아직 영어 원문입니다.

  4. 이 버튼으로 VS Code 열기

    VS Code에서 열기

    VS Code가 설치를 확인하면 Install을 누르세요

  5. 키 입력

    Boyce 설정에서 ANTHROPIC_API_KEY, BOYCE_DB_URL가 비어 있어요. 내 키를 넣고 저장하세요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  6. VS Code에서 AI 채팅을 Agent 모드로 열기

  7. 해 보기

    Boyce을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ VS Code가 Boyce을 쓰고 있다고 하거나 답에 Boyce 도구 이름이 나오면 연결된 거예요

추가 설정 1개 (입력하지 않아도 사용 가능)

위 명령은 이 값들 없이도 동작합니다. 바꾸고 싶을 때만 제작자 설명대로 추가하세요.

  • BOYCE_PROVIDER LLM provider for the NL→StructuredFilter planner (anthropic, openai). MCP hosts using their own model should not set this — the host's model does the reasoning and Boyce receives a pre-built Structur…

설명은 아직 영어 원문입니다.

메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Windsurf, Zed, Gemini CLI 같은 다른 MCP 앱은 추가 방법이 저마다 달라요. 앱 목록에서 확인하세요

MCP를 쓰는 앱 모두 보기 →

JSON 설정은 아래 “개발자용”에 있어요

막혔나요? Boyce을 쓰는 사람에게 물어보세요💬 토론 →
개발자용: 터미널 명령과 JSON 설정

컴퓨터에 설치

Claude Code

claude mcp add --scope user boyce --env BOYCE_DB_URL=your-value --env ANTHROPIC_API_KEY=your-value -- uvx boyce

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "boyce": {
      "command": "uvx",
      "args": [
        "boyce"
      ],
      "env": {
        "BOYCE_DB_URL": "your-value",
        "ANTHROPIC_API_KEY": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "boyce": {
      "command": "uvx",
      "args": [
        "boyce"
      ],
      "env": {
        "BOYCE_DB_URL": "your-value",
        "ANTHROPIC_API_KEY": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "boyce": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "boyce"
      ],
      "env": {
        "BOYCE_DB_URL": "your-value",
        "ANTHROPIC_API_KEY": "your-value"
      }
    }
  }
}

직접 입력할 값

  • BOYCE_DB_URL 필수 env
    PostgreSQL or Redshift connection string. Optional — tools work without live DB; required for live profiling and EXPLAIN pre-flight.
  • BOYCE_PROVIDER env
    LLM provider for the NL→StructuredFilter planner (anthropic, openai). MCP hosts using their own model should not set this — the host's model does the reasoning and Boyce receives a pre-built Structur…
  • ANTHROPIC_API_KEY 비밀 필수 env
    Required only when BOYCE_PROVIDER=anthropic and the host does not supply its own model. MCP hosts (Claude Desktop, Cursor, Claude Code, Codex, Cline, Windsurf, JetBrains) do not need this.

설명은 아직 영어 원문입니다.

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

한눈에 보기

주간 다운로드i
21/주
연결 방식
내 컴퓨터에서 실행
최신 버전i
0.1.1
레지스트리 공개i
2026년 4월 23일
코드 마지막 변경i
2026년 4월 28일
제작자
boyce-io
패키지
pypi: boyce
레지스트리 상태
활성

어떤 앱에서 쓸 수 있나요

이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.

내 컴퓨터에서 실행하는 앱

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

모든 앱과 장단점 →

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 14일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 boyce-io 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • ! 주의

    계속 관리되고 있음

    코드 마지막 변경: 7개월 전, 6개월 넘게 지났어요

  • ✓ 통과

    라이선스 있음

    MIT 사용

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

토론

질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.

아직 글이 없어요. 처음으로 질문하거나 공유해 보세요.

이곳의 글은 사용자가 쓴 것으로, PopNx 팀의 글이 아니에요.

Google로 로그인하고 글쓰기

사용자 리뷰

아직 리뷰가 없어요

Google로 로그인하고 리뷰 쓰기

데이터베이스 및 데이터셋 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 1190개 중 79%보다 스타가 많아요
  • 이 카테고리의 다른 서버 1190개 중 9%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 1190개 중 51%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

Boyce, 안전한가요?

해당하는 기본 점검 3개 중 2개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

입력해야 할 값: ANTHROPIC_API_KEY

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 7개월 전 변경됐고, 최신 버전(0.1.1)은 7개월 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Python (uv)도 있어야 해요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: Dbx, MCP Toolbox for Databases, MCP Toolbox for Databases

같은 카테고리의 다른 것

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

Dbx

Query databases from AI agents using connections configured in DBX.

제작자: t8y2널리 사용됨↓ 9.4천/주★ 3만6개월 전 업데이트

내 컴퓨터에서 실행

MCP Toolbox for Databases

MCP Toolbox for Databases enables your agent to connect to your database.

제작자: googleapis널리 사용됨★ 1.7만어제 업데이트

내 컴퓨터에서 실행

MCP Toolbox for Databases

MCP Toolbox for Databases enables your agent to connect to your database.

제작자: googleapis널리 사용됨★ 1.7만8개월 전 업데이트

내 컴퓨터에서 실행

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

Boyce: Semantic Protocol & Safety Layer for Agentic Database Workflows

The semantic safety layer for agentic database workflows.

Boyce connects LLMs to live database context with built-in safety rails.

Named for Raymond F. Boyce, co-inventor of SQL (1974) and co-author of Boyce-Codd Normal Form (BCNF).

AI agents querying databases without proper context generate unreliable SQL — working from incomplete schemas, inferring column names, guessing join paths. Boyce gives agents the structured database intelligence they need to generate correct, safe SQL every time — through three interconnected systems:

LayerWhat it does
SQL Compilerask_boyce — NL → StructuredFilter → deterministic SQL. Zero LLM in the SQL builder. Same inputs, same SQL, byte-for-byte, every time.
Database Inspectorquery_database / profile_data — Live Postgres/Redshift adapters let your agent see real schema and real data distributions before writing a single filter.
Query VerificationPre-flight EXPLAIN loops on every generated query. Bad SQL is caught at planning time, not at 2am in your on-call rotation.

Why does this matter? → The Null Trap: Your AI Agent's SQL Is Correct. The Answer Is Still Wrong.


Install

Requires Python 3.10+

pip install boyce

With live Postgres/Redshift adapter (enables EXPLAIN pre-flight + column profiling)

pip install "boyce[postgres]"

# uv (recommended)

uv pip install boyce uv pip install "boyce[postgres]"

From source:

git clone https://github.com/boyce-io/boyce

uv pip install -e "boyce/"


Quickstart

After installing, run boyce init to configure your MCP host automatically:

boyce init

The wizard detects Claude Desktop, Cursor, Claude Code, and JetBrains (DataGrip, IntelliJ, etc.), and writes the correct config block for each.

Developing from source? The repo includes a setup script:

./quickstart.sh   # detects uv or python, installs package, writes .env template

Configure Your MCP Host

The fastest path is boyce init — it detects your MCP host and writes the config automatically:

boyce init

Or configure manually. There are two setup paths depending on your host:


Path 1 — MCP Hosts (No LLM key required)

If you're using Claude Desktop, Cursor, Claude Code, Codex, Cline, Windsurf, JetBrains (DataGrip, IntelliJ), or any MCP-compatible host, you do not need to configure an LLM provider for Boyce. The host's own model handles reasoning — Boyce supplies the schema context and deterministic SQL compiler via get_schema and ask_boyce. Only BOYCE_DB_URL is needed (and even that is optional).

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{

"mcpServers": { "boyce": { "command": "boyce", "env": { "BOYCE_DB_URL": "postgresql://user:pass@host:5432/db" } } } }

Cursor (.cursor/mcp.json in project root):

{

"mcpServers": { "boyce": { "command": "boyce", "env": { "BOYCE_DB_URL": "postgresql://user:pass@host:5432/db" } } } }


Path 2 — With Boyce's Built-in NL→SQL

If you're using the CLI (boyce ask), HTTP API, or a non-MCP client (e.g., the VS Code extension), configure Boyce's internal query planner with your LLM provider:

{

"mcpServers": { "boyce": { "command": "boyce", "env": { "BOYCE_PROVIDER": "anthropic", "BOYCE_MODEL": "claude-sonnet-4-6", "ANTHROPIC_API_KEY": "sk-ant-...", "BOYCE_DB_URL": "postgresql://user:pass@host:5432/db" } } } }

Boyce supports any LLM provider available through LiteLLM: Anthropic, OpenAI, Ollama (local), vLLM (local), Azure, Bedrock, Vertex, Mistral, and more.


BOYCE_DB_URL is optional on both paths. Without it, Boyce runs in schema-only mode — SQL generation still works; EXPLAIN pre-flight and live query tools return "status": "unchecked".


Environment Variables

VariableWhen neededExamplePurpose
BOYCE_PROVIDERPath 2 only (CLI/HTTP/non-MCP)anthropicLiteLLM provider name
BOYCE_MODELPath 2 only (CLI/HTTP/non-MCP)claude-sonnet-4-6Model ID passed to LiteLLM
ANTHROPIC_API_KEYWhen using Anthropicsk-ant-...Anthropic credentials
OPENAI_API_KEYWhen using OpenAIsk-...OpenAI credentials
BOYCE_DB_URLOptional (either path)postgresql://user:pass@host:5432/dbasyncpg DSN — enables EXPLAIN pre-flight + live query tools
BOYCE_HTTP_TOKENPath 2 HTTP API onlymy-secret-tokenBearer token for boyce serve --http
BOYCE_STATEMENT_TIMEOUT_MSOptional30000Per-statement timeout in ms (default: 30s)

MCP Tools

ToolDescription
ingest_sourceParse a SemanticSnapshot from dbt manifest, dbt project, LookML, DDL, SQLite, Django, SQLAlchemy, Prisma, CSV, or Parquet.
ingest_definitionStore a certified business definition — injected automatically at query time.
get_schemaReturn full schema context + StructuredFilter format docs. Used by MCP hosts so the host LLM can construct queries without a Boyce API key.
ask_boyceFull NL → SQL pipeline: query planner (LiteLLM) → deterministic kernel → NULL trap check → EXPLAIN pre-flight.
validate_sqlValidate hand-written SQL — EXPLAIN pre-flight, Redshift lint, NULL risk — without executing.
query_databaseExecute a read-only SELECT against the live database. Write operations rejected at two independent layers.
profile_dataNull %, distinct count, min/max for any column — surface data quality issues before they affect query results.
check_healthOperational health check — DB connectivity, snapshot freshness, actionable fix commands. Call when queries fail unexpectedly.

Architecture

SemanticSnapshot (JSON)

│ ▼ ingest_source ┌─────────────────────────────────────────────┐ │ SemanticGraph (NetworkX) │ ← in-memory, loaded per session │ nodes = entities (tables/views/dbt models) │ │ edges = joins (weighted by confidence) │ └─────────────────────────────────────────────┘ │ │ ▼ ask_boyce ▼ (internal) QueryPlanner Dijkstra (LiteLLM) join resolver NL → StructuredFilter │ │ │ └──────────┬────────────────┘ ▼ kernel.process_request() ← ZERO LLM HERE SQLBuilder (dialect-aware) │ ▼ EXPLAIN pre-flight ← Query Verification (PostgresAdapter) │ ▼ SQL + validation result

Dialect support: redshift, postgres, duckdb, bigquery

Redshift safety rails (safety.py): Automatic linting for LATERAL, JSONB, REGEXP_COUNT, lookahead regex patterns, and numeric cast rewrites for Redshift 1.0 (PG 8.0.2).


Scan CLI

# Scan a single file

boyce scan demo/magic_moment/manifest.json

Scan a directory (auto-detects all parseable sources)

boyce scan ./my-project/ -v

Save snapshots for MCP server use

boyce scan ./my-project/ --save

10 parsers: dbt manifest, dbt project, LookML, SQLite, DDL, CSV, Parquet, Django, SQLAlchemy, Prisma.


Verify the Install

# Unit tests — no DB required, runs in ~4 seconds

python boyce/tests/verify_eyes.py

Expected output:

Ran 15 tests in 3.5s

OK

✅ All checks passed.


SemanticSnapshot Format

The ingest_source tool accepts a SemanticSnapshot JSON dict. Minimal example:

{

"snapshot_id": " ", "source_system": "dbt", "entities": { "entity:orders": { "id": "entity:orders", "name": "orders", "schema": "public", "fields": ["field:orders:order_id", "field:orders:revenue"] } }, "fields": { "field:orders:order_id": { "id": "field:orders:order_id", "entity_id": "entity:orders", "name": "order_id", "field_type": "ID", "data_type": "INTEGER" } }, "joins": [] }

See boyce/tests/live_fire/mock_snapshot.json for a complete field/entity example.


Project Layout

boyce/                          ← PRIMARY — headless FastMCP server + pip package

├── boyce/ │ ├── server.py ← MCP entry point (8 tools) │ ├── kernel.py ← Deterministic SQL kernel │ ├── graph.py ← SemanticGraph (NetworkX) │ ├── safety.py ← Redshift compatibility rails │ ├── types.py ← Protocol contract (Pydantic) │ ├── scan.py ← Scan CLI (boyce scan) │ ├── connections.py ← DSN persistence (ConnectionStore) │ ├── doctor.py ← Environment diagnostics (boyce doctor) │ ├── sql/ ← SQLBuilder, dialect layer, join resolver │ ├── parsers/ ← 10 parsers (dbt, lookml, ddl, sqlite, csv, etc.) │ ├── planner/ ← QueryPlanner (LiteLLM → StructuredFilter) │ └── adapters/ ← PostgresAdapter (Eyes) └── tests/ ├── verify_eyes.py ← 15-test suite, no DB required ├── test_parsers.py ← Parser tests (all 10 parsers) ├── test_scan.py ← Scan CLI tests └── live_fire/ ← Docker Compose integration tests


Status

CapabilityStatus
NL → SQL (deterministic kernel)Operational
SemanticGraph (join resolution)Operational
10 source parsersOperational
Scan CLI (boyce scan)Operational
PostgresAdapter (read-only)Operational
EXPLAIN pre-flight validationOperational
NULL Trap detectionOperational
Redshift 1.0 safety lintingOperational
Snapshot persistence across restartsOperational
Audit logging (append-only JSONL)Operational
Business definitions (ingest_definition)Operational
DSN persistence (ConnectionStore)Operational
Environment diagnostics (boyce doctor / check_health)Operational
Multi-snapshot mergePlanned

Support


*Copyright 2026 Convergent Methods, LLC. MIT License.*