sangyeons57/MCP-SERVER-TEST-1
If you are the rightful owner of MCP-SERVER-TEST-1 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.
This project implements a simple calculator server using the Model Context Protocol (MCP), providing basic mathematical operations integrated with Cursor IDE.
MCP ๊ณ์ฐ๊ธฐ ์๋ฒ
์ด ํ๋ก์ ํธ๋ Model Context Protocol(MCP)์ ์ฌ์ฉํ๋ ๊ฐ๋จํ ๊ณ์ฐ๊ธฐ ์๋ฒ๋ฅผ ๊ตฌํํฉ๋๋ค. Cursor IDE์ ์ฐ๋ํ์ฌ ๊ธฐ๋ณธ์ ์ธ ์ํ ๊ณ์ฐ ๊ธฐ๋ฅ์ ์ ๊ณตํฉ๋๋ค.
๊ธฐ๋ฅ
- ๊ธฐ๋ณธ ์ฐ์ ์ฐ์ฐ:
- ๋ํ๊ธฐ (
add
) - ๋นผ๊ธฐ (
subtract
) - ๊ณฑํ๊ธฐ (
multiply
) - ๋๋๊ธฐ (
divide
) - ๊ฑฐ๋ญ์ ๊ณฑ (
power
)
- ๋ํ๊ธฐ (
- Docker ์ปจํ ์ด๋๋ฅผ ํตํ ๊ฐํธํ ๋ฐฐํฌ
- Cursor IDE์ ์ฐ๋
์ค์น ๋ฐ ์คํ ๋ฐฉ๋ฒ
์ฌ์ ์๊ตฌ์ฌํญ
- Docker ๋ฐ Docker Compose ์ค์น
- Cursor IDE
๋ก์ปฌ์์ ์คํํ๊ธฐ
-
์ ์ฅ์ ํด๋ก :
git clone https://github.com/์ฌ์ฉ์๋ช /mcp-calculator.git cd mcp-calculator
-
Docker ์ปจํ ์ด๋ ๋น๋ ๋ฐ ์คํ:
docker-compose up --build -d
-
ํ์ธ:
curl -v http://localhost:8001/sse
์ ์์ ์ผ๋ก ๋์ํ๋ฉด
200 OK
์ ํจ๊ป SSE ์คํธ๋ฆผ์ด ์์๋ฉ๋๋ค.
Cursor IDE์ ์ฐ๊ฒฐํ๊ธฐ
- Cursor IDE๋ฅผ ์คํํฉ๋๋ค.
- ๋ช
๋ น ํ๋ ํธ(Windows/Linux:
Ctrl+Shift+P
, Mac:Cmd+Shift+P
)์์Cursor Settings
๋ฅผ ๊ฒ์ํฉ๋๋ค. - ์ค์ ์์
MCP
์น์ ์ผ๋ก ์ด๋ํฉ๋๋ค. Add Custom MCP Server
๋ฅผ ํด๋ฆญํฉ๋๋ค.- MCP ์๋ฒ URL๋ก
http://localhost:8001/sse
๋ฅผ ์ ๋ ฅํฉ๋๋ค. - ์ด๋ฆ์
CalculatorMCP
๋ก ์ง์ ํฉ๋๋ค. - Cursor๋ฅผ ์ฌ์์ํฉ๋๋ค.
์ฌ์ฉ ์์
Cursor์์ ๋ค์๊ณผ ๊ฐ์ด ์ฌ์ฉํ ์ ์์ต๋๋ค:
@CalculatorMCP add 123 and 456
@CalculatorMCP multiply 78 by 9
@CalculatorMCP 5 to the power of 3
GitHub์์ ํ๋ก์ ํธ ํฌํฌํ๊ธฐ
- GitHub ์ ์ฅ์ ํ์ด์ง์์ "Fork" ๋ฒํผ์ ํด๋ฆญํฉ๋๋ค.
- ํฌํฌ๋ ์ ์ฅ์๋ฅผ ๋ก์ปฌ์ ํด๋ก ํฉ๋๋ค.
- ํ์ํ ๊ฒฝ์ฐ ์ฝ๋๋ฅผ ์์ ํฉ๋๋ค.
- ๋ณ๊ฒฝ์ฌํญ์ ์ปค๋ฐํ๊ณ ํธ์ํฉ๋๋ค.
๋ผ์ด์ผ์ค
MIT
๊ธฐ์ฌํ๊ธฐ
Pull Request๋ ์ธ์ ๋ ์ง ํ์ํฉ๋๋ค!