Skip to main content
Glama
nicknochnack

MCP Server for ML Model Integration

by nicknochnack

MCP 서버 구축

훈련된 랜덤 포레스트 모델을 제공하고 ReAct 상호 작용을 위해 Bee 프레임워크와 통합하는 MCP 서버를 구축하는 방법에 대한 전체적인 연습입니다.

라이브로 직접 확인해보세요 📺

MCP 서버 시작 🚀

  1. 이 저장소를 복제하세요 git clone https://github.com/nicknochnack/BuildMCPServer

  2. MCP 서버를 실행하려면
    cd BuildMCPServer
    uv venv
    source .venv/bin/activate
    uv add .
    uv add ".[dev]"
    uv run mcp dev server.py

  3. 에이전트를 실행하려면 별도의 터미널에서 다음을 실행하세요.
    source .venv/bin/activate
    uv run singleflowagent.py

FastAPI 호스팅 ML 서버 시작

git clone https://github.com/nicknochnack/CodeThat-FastML
cd CodeThat-FastML
pip install -r requirements.txt
uvicorn mlapi:app --reload
자세한 제작 방법은 여기에서도 확인할 수 있습니다.

기타 참고 자료 🔗

  • MCP 클라이언트 구축(SingleFlow 에이전트에서 사용)

  • ML 서버를 구축하는 원본 비디오

누가, 언제, 왜?

👨🏾‍💻 저자: Nick Renotte 📅 버전: 1.x 📜 라이선스: 이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다.

Available Tools

1 tool
PredictChurnC

This tool predicts whether an employee will churn or not, pass through the input as a list of samples. Args: data: employee attributes which are used for inference. Example payload

    [{
    'YearsAtCompany':10,
    'EmployeeSatisfaction':0.99,
    'Position':'Non-Manager',
    'Salary:5.0
    }]

Returns:
    str: 1=churn or 0 = no churn
ParametersJSON Schema
NameRequiredDescriptionDefault
dataYes

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It mentions the tool 'predicts' and returns a string, but lacks critical behavioral details like accuracy, confidence scores, model limitations, rate limits, or error handling. This is insufficient for a prediction tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is moderately concise but could be better structured. It front-loads the purpose but includes an example that might be verbose. Sentences like 'pass through the input as a list of samples' are somewhat redundant. Overall, it's adequate but not optimally efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations, no output schema, and low schema coverage, the description is incomplete. It covers basic purpose and a parameter example but misses behavioral traits, usage context, and detailed output explanation. For a prediction tool, this leaves significant gaps in understanding its operation and reliability.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It adds value by explaining 'data' as 'employee attributes used for inference' and provides an example payload with specific fields. However, it doesn't fully document all required attributes or their types beyond the example, leaving gaps in parameter understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'predicts whether an employee will churn or not' with the verb 'predicts' and resource 'employee'. It specifies the input format ('list of samples') and output meaning ('1=churn or 0=no churn'). However, without sibling tools, it cannot demonstrate differentiation, so it doesn't reach the highest score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or limitations. It only states what the tool does without context for its application, such as when predictions are needed or what data is required beyond the example.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

B3/5.0
Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools, as there are no other tools to compare it to. The tool's purpose is clearly defined and distinct by default.

Naming Consistency5/5

With only one tool, naming consistency is inherently perfect, as there are no other tool names to be inconsistent with. The tool name 'PredictChurn' follows a clear verb_noun pattern.

Tool Count2/5

A single tool is too few for a server described as 'ML Model Integration', which suggests a broader scope covering multiple models or operations. This feels thin and incomplete for the apparent domain.

Completeness2/5

The server is severely incomplete for ML model integration, as it only offers a churn prediction tool. There are significant gaps, such as no tools for training models, listing available models, updating models, or handling other common ML tasks.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nicknochnack/BuildMCPServer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server