greptimedb-mcp-server
๐ PyPI - ๋ฒ์
๐ ๋น๋ ์ํฌํ๋ก
๐ MIT ๋ผ์ด์ผ์ค
GreptimeDB ์ ๋ํ MCP(Model Context Protocol) ์๋ฒ ๊ตฌํ.
์ด ์๋ฒ๋ AI ๋น์์๊ฒ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ํ์ํ๊ณ ๋ถ์ํ ์ ์๋ ์์ ํ๊ณ ์ฒด๊ณ์ ์ธ ๋ฐฉ๋ฒ์ ์ ๊ณตํฉ๋๋ค. AI ๋น์๋ ์ ์ด๋ ์ธํฐํ์ด์ค๋ฅผ ํตํด ํ ์ด๋ธ ๋ชฉ๋ก์ ์์ฑํ๊ณ , ๋ฐ์ดํฐ๋ฅผ ์ฝ๊ณ , SQL ์ฟผ๋ฆฌ๋ฅผ ์คํํ์ฌ ์ฑ ์๊ฐ ์๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค ์ ๊ทผ์ ๋ณด์ฅํฉ๋๋ค.
ํ๋ก์ ํธ ์ํ
์ด ํ๋ก์ ํธ๋ ์์ง ๊ฐ๋ฐ ์ค์ธ ์คํ์ ํ๋ก์ ํธ์ ๋๋ค. ๋ฐ์ดํฐ ๋ณด์ ๋ฐ ๊ฐ์ธ์ ๋ณด ๋ณดํธ ๋ฌธ์ ๋ ์์ง ๊ตฌ์ฒด์ ์ผ๋ก ํด๊ฒฐ๋์ง ์์์ผ๋ฏ๋ก ์ฃผ์ํด์ ์ฌ์ฉํ์๊ธฐ ๋ฐ๋๋๋ค.
์ญ๋
list_resources์ฌ์ฉํ์ฌ ํ ์ด๋ธ ๋์ดํ ์ด๋ธ ๋ฐ์ดํฐ๋ฅผ ์ฝ๊ธฐ ์ํ
read_resourcelist_tools๋ก ๋๊ตฌ ๋์ดSQL์ ์คํํ๊ธฐ ์ํ
call_toollist_prompts๋ก ํ๋กฌํํธ๋ฅผ ๋์ดํฉ๋๋คget_prompt์ฌ์ฉํ์ฌ ์ด๋ฆ์ผ๋ก ํ๋กฌํํธ๋ฅผ ๊ฐ์ ธ์ต๋๋ค.
์ค์น
์ง์์คํผ1
๊ตฌ์ฑ
๋ค์ ํ๊ฒฝ ๋ณ์๋ฅผ ์ค์ ํ์ธ์.
GREPTIMEDB_HOST=localhost # Database host
GREPTIMEDB_PORT=4002 # Optional: Database MySQL port (defaults to 4002 if not specified)
GREPTIMEDB_USER=root
GREPTIMEDB_PASSWORD=
GREPTIMEDB_DATABASE=public๋๋ ๋ช ๋ น์ค ์ธ์๋ฅผ ํตํด:
--host๋ฐ์ดํฐ๋ฒ ์ด์ค ํธ์คํธ(๊ธฐ๋ณธ์ ์ผ๋กlocalhost--port๋ฐ์ดํฐ๋ฒ ์ด์ค ํฌํธ, MySQL ํ๋กํ ์ฝ ํฌํธ์ฌ์ผ ํจ, ๊ธฐ๋ณธ๊ฐ์4002.--user๋ฐ์ดํฐ๋ฒ ์ด์ค ์ฌ์ฉ์ ์ด๋ฆ, ๊ธฐ๋ณธ์ ์ผ๋ก ๋น์ด ์์--password๋ฐ์ดํฐ๋ฒ ์ด์ค ๋น๋ฐ๋ฒํธ, ๊ธฐ๋ณธ์ ์ผ๋ก ๋น์ด ์์--database๋ฐ์ดํฐ๋ฒ ์ด์ค ์ด๋ฆ, ๊ธฐ๋ณธ์ ์ผ๋กpublic.
์ฉ๋ฒ
Claude ๋ฐ์คํฌํฑ ํตํฉ
Claude Desktop์ ๊ตฌ์ฑ ํ์ผ์์ MCP ์๋ฒ๋ฅผ ๊ตฌ์ฑํฉ๋๋ค.
๋งฅOS
์์น: ~/Library/Application Support/Claude/claude_desktop_config.json
์๋์ฐ
์์น: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"greptimedb": {
"command": "uv",
"args": [
"--directory",
"/path/to/greptimedb-mcp-server",
"run",
"-m",
"greptimedb_mcp_server.server"
],
"env": {
"GREPTIMEDB_HOST": "localhost",
"GREPTIMEDB_PORT": "4002",
"GREPTIMEDB_USER": "root",
"GREPTIMEDB_PASSWORD": "",
"GREPTIMEDB_DATABASE": "public"
}
}
}
}ํนํ
MIT ๋ผ์ด์ผ์ค - ์์ธํ ๋ด์ฉ์ LICENSE.md ํ์ผ์ ์ฐธ์กฐํ์ธ์.
๊ธฐ์ฌํ๋ค
Related MCP server: SQLite MCP Server
ํ์ ์กฐ๊ฑด
uvํจํค์ง ๊ด๋ฆฌ์๋ฅผ ์ฌ์ฉํ PythonGreptimeDB ์ค์น
MCP ์๋ฒ ์ข ์์ฑ
๊ฐ๋ฐ
# Clone the repository
git clone https://github.com/GreptimeTeam/greptimedb-mcp-server.git
cd greptimedb-mcp-server
# Create virtual environment
uv venv
source venv/bin/activate # or `venv\Scripts\activate` on Windows
# Install development dependencies
uv sync
# Run tests
pytest๋๋ฒ๊น ์ ์ํด MCP Inspector๋ฅผ ์ฌ์ฉํ์ธ์.
npx @modelcontextprotocol/inspector uv \
--directory \
/path/to/greptimedb-mcp-server \
run \
-m \
greptimedb_mcp_server.server์น์ธ
์ด ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๊ตฌํ์ ๋ค์ ๋ ์ ์ฅ์์์ ์๊ฐ์ ์ป์์ผ๋ฉฐ ํด๋น ์ฝ๋๋ฅผ ํตํฉํ์ต๋๋ค. ์ด์ ๋ํด ๊ฐ์ฌ๋๋ฆฝ๋๋ค.
๊ฐ์ฌํด์!
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/GreptimeTeam/greptimedb-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
