mcp client config path, such as Claude Desktop and code, Cline, Cursor
Project description
MCP Config Path
A Python utility to get the configuration file path for various MCP (Multi-Client Platform) clients, such as Claude Desktop, Cline, Cursor, VSCode, and more. This library helps you locate the config file for each supported client on your system.
Features
- Supports multiple clients: Claude Desktop, Cline, Roo Code, Claude Code, VSCode, Cursor, mcphub.nvim, windsurf, mcplinker, and more.
- Cross-platform support (macOS, Windows, Linux where applicable).
- Simple API to get the config path by client name.
Supported Clients
| Name | Description / Path Example |
|---|---|
| claude_desktop | Claude Desktop config |
| cline | Cline extension for VSCode |
| roo_code | Roo Code extension |
| claude_code | Claude Code extension |
| vscode | VSCode extension |
| cursor | Cursor editor extension |
| mcphub.nvim | mcphub.nvim Neovim plugin |
| windsurf | Codeium windsurf |
| mcplinker | mcplinker tool |
| (other) | Defaults to mcp.json |
Installation
uv pip install mcp-config-path
Or with pip:
pip install mcp-config-path
Usage
from mcp_config_path.main import get_config_path
# Get config path for Cursor
path = get_config_path("cursor")
print(path)
# Get config path for VSCode, with a custom base path
path = get_config_path("vscode", "/custom/home")
print(path)
API
get_config_path(name: str, path: Optional[str] = None) -> str
name: The client name (see Supported Clients table).path: Optional base path. If not provided, uses the user's home directory.- Returns: The absolute path to the config file as a string.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_config_path-0.1.3.tar.gz.
File metadata
- Download URL: mcp_config_path-0.1.3.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
180132ca8e16abace0d2e6337ce07f41a38fc998577a9e21899c4caca641fb7c
|
|
| MD5 |
0fe85593629e6403dbcf7cfbe7b1a7ef
|
|
| BLAKE2b-256 |
eea6cd0f046ed7f9c761ff1cf82eada5845738c6513601e29a658cbfb7e39345
|
File details
Details for the file mcp_config_path-0.1.3-py3-none-any.whl.
File metadata
- Download URL: mcp_config_path-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa4827c3cb0d1ea270a53c4f76a14070a58ad6527d059703226dd2836e6ff384
|
|
| MD5 |
f99db409e7b9a60ac9ed84c5e7d1d07c
|
|
| BLAKE2b-256 |
4fc29b0bc9ab8ea5dac7423772c594fc92511aa6b51acb17599d879371b2840f
|