Skip to content

Commit 2f16053

Browse files
authored
Merge pull request #3 from ydb-platform/uvx_docs
Add docs about uvx and bagdes
2 parents a975550 + 737e9ad commit 2f16053

File tree

1 file changed

+56
-12
lines changed

1 file changed

+56
-12
lines changed

README.md

Lines changed: 56 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
# YDB MCP
2+
---
3+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/ydb-platform/ydb-mcp/blob/main/LICENSE)
4+
[![PyPI version](https://badge.fury.io/py/ydb-mcp.svg)](https://badge.fury.io/py/ydb-mcp)
25

36
[Model Context Protocol server](https://modelcontextprotocol.io/) for [YDB](https://ydb.tech). It allows to work with YDB databases from any [LLM](https://en.wikipedia.org/wiki/Large_language_model) that supports MCP. This integration enables AI-powered database operations and natural language interactions with your YDB instances.
47

58
## Usage
69

7-
### Via pip
8-
9-
YDB MCP can be installed using `pip`, [Python's package installer](https://pypi.org/project/pip/). The package is [available on PyPI](https://pypi.org/project/ydb-mcp/) and includes all necessary dependencies.
10-
11-
```bash
12-
pip install ydb-mcp
13-
```
10+
### Via uvx
1411

15-
To get started with YDB MCP, you'll need to configure your MCP client to communicate with the YDB instance. Below are example configuration files that you can customize according to your setup and then put into MCP client's settings. Path to the Python interpreter might also need to be adjusted to the correct virtual environment that has the `ydb-mcp` package installed.
12+
[uvx](https://docs.astral.sh/uv/concepts/tools/), which is an allias for `uv run tool`, allows you to run various python applications without explicitly installing them. Below are examples of how to configure YDB MCP using `uvx`.
1613

1714
#### Example: Using Anonymous Authentication
1815

1916
```json
2017
{
2118
"mcpServers": {
2219
"ydb": {
23-
"command": "python3",
20+
"command": "uvx",
2421
"args": [
25-
"-m", "ydb_mcp",
22+
"ydb-mcp",
2623
"--ydb-endpoint", "grpc://localhost:2136/local"
2724
]
2825
}
@@ -38,9 +35,9 @@ To use login/password authentication, specify the `--ydb-auth-mode`, `--ydb-logi
3835
{
3936
"mcpServers": {
4037
"ydb": {
41-
"command": "python3",
38+
"command": "uvx",
4239
"args": [
43-
"-m", "ydb_mcp",
40+
"ydb-mcp",
4441
"--ydb-endpoint", "grpc://localhost:2136/local",
4542
"--ydb-auth-mode", "login-password",
4643
"--ydb-login", "<your-username>",
@@ -92,6 +89,53 @@ To use login/password authentication, specify the `--ydb-auth-mode`, `--ydb-logi
9289
}
9390
```
9491

92+
### Via pip
93+
94+
YDB MCP can be installed using `pip`, [Python's package installer](https://pypi.org/project/pip/). The package is [available on PyPI](https://pypi.org/project/ydb-mcp/) and includes all necessary dependencies.
95+
96+
```bash
97+
pip install ydb-mcp
98+
```
99+
100+
To get started with YDB MCP, you'll need to configure your MCP client to communicate with the YDB instance. Below are example configuration files that you can customize according to your setup and then put into MCP client's settings. Path to the Python interpreter might also need to be adjusted to the correct virtual environment that has the `ydb-mcp` package installed.
101+
102+
#### Example: Using Anonymous Authentication
103+
104+
```json
105+
{
106+
"mcpServers": {
107+
"ydb": {
108+
"command": "python3",
109+
"args": [
110+
"-m", "ydb_mcp",
111+
"--ydb-endpoint", "grpc://localhost:2136/local"
112+
]
113+
}
114+
}
115+
}
116+
```
117+
118+
#### Example: Using Login/Password Authentication
119+
120+
To use login/password authentication, specify the `--ydb-auth-mode`, `--ydb-login`, and `--ydb-password` arguments:
121+
122+
```json
123+
{
124+
"mcpServers": {
125+
"ydb": {
126+
"command": "python3",
127+
"args": [
128+
"-m", "ydb_mcp",
129+
"--ydb-endpoint", "grpc://localhost:2136/local",
130+
"--ydb-auth-mode", "login-password",
131+
"--ydb-login", "<your-username>",
132+
"--ydb-password", "<your-password>"
133+
]
134+
}
135+
}
136+
}
137+
```
138+
95139
## Available Tools
96140

97141
YDB MCP provides the following tools for interacting with YDB databases:

0 commit comments

Comments
 (0)