@meldocio/mcp-stdio-proxy
v1.0.29
Published
MCP stdio proxy for meldoc - connects Claude Desktop and Claude Code to meldoc MCP API
Maintainers
Readme
Meldoc MCP for Claude Desktop & Claude Code
This package allows you to connect Claude Desktop and Claude Code to your Meldoc account, so you can use all your documentation directly in Claude.
🚀 Quick Start - Install from Claude Marketplace
The easiest way to install Meldoc MCP is through the Claude Marketplace:
# Add the marketplace
claude plugin marketplace add meldoc-io/mcp-stdio-proxy
# Install the plugin
claude plugin install meldoc-mcp@meldoc-mcpAfter installation:
- Restart Claude Desktop or Claude Code
- Run
npx @meldocio/mcp-stdio-proxy@latest auth loginto authenticate
Done! 🎉 Now you can ask Claude to work with your Meldoc documentation.
What is this?
This is a bridge between Claude (Desktop & Code) and Meldoc. After setup, Claude will be able to:
- 📖 Read your documentation from Meldoc
- 🔍 Search through documents
- ✏️ Create and update documents (if you have permissions)
- 📁 Work with projects and workspaces
No additional installation required - everything works automatically through Claude Desktop and Claude Code.
Installation
Via Claude Marketplace (Recommended) 🚀
See Quick Start section above for the easiest installation method.
Via NPM
You can also install directly via npm:
npm install -g @meldocio/mcp-stdio-proxyThen add to your Claude Desktop config file (see Manual Installation below).
Quick Setup
Automatic Installation (Recommended) ✨
The easiest way to set up Meldoc MCP is using the automatic installer:
npx @meldocio/mcp-stdio-proxy@latest installThis command will:
- ✅ Automatically find your Claude Desktop configuration file
- ✅ Add Meldoc MCP configuration (preserving existing MCP servers)
- ✅ Create the config file and directory if needed
- ✅ Check if already installed (won't duplicate if already configured)
- ✅ Show you the next steps
After running install, you just need to:
- Restart Claude Desktop
- Run
npx @meldocio/mcp-stdio-proxy@latest auth login
Done! 🎉
Uninstalling
To remove Meldoc MCP from Claude Desktop:
npx @meldocio/mcp-stdio-proxy@latest uninstallThis will:
- ✅ Remove Meldoc MCP configuration from Claude Desktop
- ✅ Preserve other MCP servers
- ✅ Clean up empty
mcpServersobject if needed
After running uninstall, restart Claude Desktop for changes to take effect.
Manual Installation
If you prefer to configure manually, follow these steps:
Step 1: Find Claude Desktop configuration file
Open the configuration file depending on your operating system:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json💡 Tip: If the file doesn't exist, create it. Make sure the folder exists.
Step 2: Add Meldoc configuration
Open the file in any text editor and add the following:
{
"mcpServers": {
"meldoc": {
"command": "npx",
"args": ["-y", "@meldocio/mcp-stdio-proxy@latest"]
}
}
}⚠️ Important: If the file already has other MCP servers, simply add
"meldoc"to the existingmcpServersobject.
Step 3: Restart Claude Desktop
Completely close and reopen Claude Desktop for the changes to take effect.
Step 4: Log in to your Meldoc account
Open a terminal and run:
npx @meldocio/mcp-stdio-proxy@latest auth loginFollow the on-screen instructions - you'll need to open a link in your browser and enter a code.
Done! Now Claude can work with your Meldoc documentation.
Authentication (Logging in)
For Claude to work with your documentation, you need to log in to your Meldoc account. There are several ways to do this:
Method 1: Interactive login (recommended) ✨
The easiest way is to use the login command:
npx @meldocio/mcp-stdio-proxy@latest auth loginWhat will happen:
- A link and code will appear in the terminal
- Open the link in your browser
- Enter the code on the Meldoc website
- Done! Your data will be saved automatically
Advantages:
- ✅ No need to copy tokens manually
- ✅ Tokens are updated automatically
- ✅ Secure data storage
Method 2: Using a token (for integrations)
If you're using a token for integration (e.g., for CI/CD), you can specify it directly.
In Claude Desktop configuration:
{
"mcpServers": {
"meldoc": {
"command": "npx",
"args": ["-y", "@meldocio/mcp-stdio-proxy@latest"],
"env": {
"MELDOC_ACCESS_TOKEN": "your_token_here"
}
}
}
}Or via environment variable:
export MELDOC_ACCESS_TOKEN=your_token_hereCheck login status
To check if you're logged in:
npx @meldocio/mcp-stdio-proxy@latest auth statusLogging out
To log out and remove saved data:
npx @meldocio/mcp-stdio-proxy@latest auth logoutAutomatic token refresh
If you used auth login, tokens will be automatically refreshed 5 minutes before expiration. You don't need to do anything - everything works automatically!
Frequently Asked Questions
Do I need to install anything additional?
No! Everything works through npx, which automatically downloads the necessary files on first use.
Is this secure?
Yes! Your tokens are stored locally on your computer with proper access permissions. Tokens are automatically refreshed so they don't expire.
Can I use multiple accounts?
Yes, but you need to switch between them using the auth logout and auth login commands.
What to do if something doesn't work?
- Check that you're logged in:
npx @meldocio/mcp-stdio-proxy@latest auth status - Check workspace:
npx @meldocio/mcp-stdio-proxy@latest config get-workspace - See the "Troubleshooting" section above
- If nothing helps, create an issue on GitHub
How does it work?
When you ask Claude to do something with your documentation:
- Claude sends a request through MCP (Model Context Protocol)
- Our proxy receives the request and adds your authorization token
- The request is sent to the Meldoc server
- The response is returned back to Claude
- Claude shows you the result
Everything happens automatically - you don't need to do anything manually!
Features
- ✅ Automatic token refresh (no need to log in every time)
- ✅ Smart workspace selection (automatically remembers your choice)
- ✅ Automatic workspace caching - use a workspace once, it becomes your default
- ✅ Secure data storage
- ✅ Works with multiple workspaces
- ✅ Support for projects and repositories with project-specific workspace binding
Working Commands
Installation commands
# Automatically configure Claude Desktop for Meldoc MCP
npx @meldocio/mcp-stdio-proxy@latest install
# Remove Meldoc MCP configuration from Claude Desktop
npx @meldocio/mcp-stdio-proxy@latest uninstallAuthentication commands
# Log in to account (browser will open)
npx @meldocio/mcp-stdio-proxy@latest auth login
# Check if you're logged in
npx @meldocio/mcp-stdio-proxy@latest auth status
# Log out of account
npx @meldocio/mcp-stdio-proxy@latest auth logoutWorkspace management commands
If you have multiple workspaces, you can manage them:
# View all available workspaces
npx @meldocio/mcp-stdio-proxy@latest config list-workspaces
# Set default workspace
npx @meldocio/mcp-stdio-proxy@latest config set-workspace workspace-name
# View current workspace
npx @meldocio/mcp-stdio-proxy@latest config get-workspaceQuick Installation Commands
# Automatically configure Claude Desktop
npx @meldocio/mcp-stdio-proxy@latest install
# Remove configuration
npx @meldocio/mcp-stdio-proxy@latest uninstallHelp
# Show all available commands
npx @meldocio/mcp-stdio-proxy@latest helpWorking with Workspaces
If you have multiple workspaces in Meldoc, the system automatically manages workspace selection for you.
How is workspace selected?
The system selects a workspace in this order:
- Specified in request - if you explicitly specified
workspaceAliasorworkspaceId - Project file - if there's a
meldoc.config.ymlfile in the project folder (or git repository directory) - Auto-cached default - if you previously used a workspace, it's automatically remembered
- Automatically - if you only have one workspace, it will be selected automatically
Note: When MCP is used in a git project or directory (e.g., Claude Desktop terminal or any other LLM), the workspace is automatically taken from the meldoc.config.yml configuration file if it exists.
Automatic Workspace Memory
The system automatically remembers your workspace choice! Just use a workspace once in your conversation:
You: "List documents in my-workspace"Now my-workspace is automatically your default for all future requests. No manual setup needed!
Setting default workspace manually (optional)
You can also set a default workspace explicitly via CLI:
npx @meldocio/mcp-stdio-proxy@latest config set-workspace workspace-nameBut in most cases, the automatic caching (just using the workspace once) is more convenient.
Workspace for a specific project
If you want different projects to use different workspaces, create a meldoc.config.yml file in the project root:
workspaceAlias: workspace-name-for-this-projectNow when working from this folder (or when MCP is used in a git repository), the specified workspace will be used.
What can Claude do with your documentation?
After setup, Claude gets access to the following capabilities:
📖 Working with documents
docs_list- Show list of all documents in the projectdocs_get- Get content of a specific documentdocs_tree- Show document structure (tree)docs_search- Find documents by textdocs_create- Create a new document (requires permissions)docs_update- Update a document (requires permissions)docs_delete- Delete a document (requires permissions)docs_links- Show all links from a documentdocs_backlinks- Show all documents that link to this one
📁 Working with projects
projects_list- Show all available projects
⚙️ Management
server_info- Information about your account and access permissionslist_workspaces- Show all workspacesset_workspace- Set default workspaceget_workspace- Get current workspaceauth_status- Check login status
How to use this?
Just ask Claude in a regular conversation! For example:
- "Show me all documents in the API project"
- "Find information about the authorization function"
- "Create a new document with API description"
- "Which documents link to the database document?"
Claude will automatically select the right tool and execute the request.
Troubleshooting
Error: "AUTH_REQUIRED" - token not found
What to do:
Run the login command:
npx @meldocio/mcp-stdio-proxy@latest auth loginOr check if you're logged in:
npx @meldocio/mcp-stdio-proxy@latest auth statusIf using a token directly, make sure it's specified in Claude Desktop configuration
Error: "WORKSPACE_REQUIRED" - need to select workspace
What to do:
If you have multiple workspaces, you need to specify which one to use:
View the list of available workspaces:
npx @meldocio/mcp-stdio-proxy@latest config list-workspacesSet one as default:
npx @meldocio/mcp-stdio-proxy@latest config set-workspace workspace-name
Error: "Invalid token" - invalid token
What to do:
If you used
auth login, just log in again:npx @meldocio/mcp-stdio-proxy@latest auth loginCheck status:
npx @meldocio/mcp-stdio-proxy@latest auth statusIf using a token manually, make sure it hasn't expired and is specified correctly
Claude Desktop won't connect
What to do:
Check the configuration file:
- Make sure the JSON is valid (you can check on jsonlint.com)
- Verify that the file path is correct for your OS
Restart Claude Desktop:
- Completely close the application
- Open it again
Check logs:
- Claude Desktop has a logs section - check if there are any errors there
Internet connection issues
If you're experiencing connection errors:
- Check your internet connection
- Make sure the site
https://api.meldoc.iois accessible - Check if a firewall or proxy is blocking requests
Development
Prerequisites
- Node.js >= 14.0.0
- npm
Setup
git clone https://github.com/meldoc-io/mcp-stdio-proxy.git
cd mcp-stdio-proxy
npm installRunning Tests
npm testBuilding
No build step is required - the package uses plain JavaScript.
Publishing
npm publish --access publicConfiguration Files
The system uses several files to store settings. Usually you don't need to edit them manually - everything is done through commands.
~/.meldoc/credentials.json
Created automatically when logging in via auth login. Contains:
- Access tokens
- User information
- Automatic refresh settings
Do not edit this file manually!
~/.meldoc/config.json
Global settings:
- Default workspace
- Other settings
Can be edited manually or through CLI commands.
meldoc.config.yml (optional)
Project-specific settings. Create in the project root if you need to use a different workspace for this project. When MCP is used in a git project or directory, the workspace is automatically taken from this configuration file if it exists.
Requirements
- Node.js 18.0.0 or newer (usually already installed if Claude Desktop works)
- Meldoc account (can be created at app.meldoc.io)
- Claude Desktop installed and working
💡 Checking Node.js: Open a terminal and run
node --version. If the command is not found, install Node.js from nodejs.org
License
MIT License - see LICENSE file for details.
Support
For issues, questions, or contributions, please visit:
- GitHub Issues: https://github.com/meldoc-io/mcp-stdio-proxy/issues
- Documentation: https://docs.meldoc.io
