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.
Metadata
Release files for mcp-config-path 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_config_path-0.1.3.tar.gz | 4.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_config_path-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / mcp_config_path-0.1.3.tar.gz
| Download URL | mcp_config_path-0.1.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
180132ca8e16abace0d2e6337ce07f41a38fc998577a9e21899c4caca641fb7c
|
|
BLAKE2b-256 checksum How to use checksums |
eea6cd0f046ed7f9c761ff1cf82eada5845738c6513601e29a658cbfb7e39345
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.8
|
Release files / mcp_config_path-0.1.3-py3-none-any.whl
| Download URL | mcp_config_path-0.1.3-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa4827c3cb0d1ea270a53c4f76a14070a58ad6527d059703226dd2836e6ff384
|
|
BLAKE2b-256 checksum How to use checksums |
4fc29b0bc9ab8ea5dac7423772c594fc92511aa6b51acb17599d879371b2840f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.8
|
Security for mcp-config-path 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.