mcp_server-example

t-nakatani/mcp_server-example

3.1

If you are the rightful owner of mcp_server-example and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Model Context Protocol (MCP) server is a framework designed to facilitate communication between language models and clients, enabling seamless interaction and data exchange.

MCP Server Example

example from https://ai.pydantic.dev/mcp/server/

uv run mcp_server.py
uv run client.py

Result

็Œซใฏ้™ใ‹ใซๆญฉใใ€  
ๆœˆๆ˜Žใ‹ใ‚Šใฎไธญใ€ๅงฟใ‚’่ฆ‹ใ›ใ‚‹ใ€‚  
ๆŸ”ใ‚‰ใ‹ใชๆฏ›ใ€ๅ„ชใ—ใ„็žณใ€  
ๅคœใฎ้™ใ‘ใ•ใ€ๅฟƒใ‚’็™’ใ™ใ€‚

ๅฐปๅฐพใ‚’็ซ‹ใฆใฆใ€่‡ช็”ฑใซ้Šใถใ€  
ๅฐใ•ใช็ฒ็‰ฉใ‚’่ฟฝใ„ใ‹ใ‘ใ‚‹ใ€‚  
ๅฑ‹ๆ นใฎไธŠใ‹ใ‚‰ใ€ไธ–็•Œใ‚’่ฆ‹ไธ‹ใ‚ใ—ใ€  
ๅคขใฎไธญใงใ‚‚ใ€ๆ—…ใ‚’็ถšใ‘ใ‚‹ใ€‚

ใ‚ใฉใ‘ใชใ„้ก”ใ€็”˜ใ„ๅฃฐใ€  
ใใฃใจๅฏ„ใ‚Šๆทปใ„ใ€ๅฟƒใ‚’ๆบ€ใŸใ™ใ€‚  
็Œซใฏใ„ใคใงใ‚‚ใ€ใใฐใซใ„ใฆใ€  
ๆ„›ใจๅฎ‰ใ‚‰ใŽใ‚’ใ€ไธŽใˆใฆใใ‚Œใ‚‹ใ€‚