📋 Prerequisites
- ✅ Claude Desktop or ChatGPT Desktop installed
- ✅ Node.js 18+ installed on your system
- ✅ DGmcp API token (get one if you don't have it)
Setting Up DGmcp in Claude Desktop
1Get Your API Token
First, you need to obtain your authentication token from DGmcp:
- Visit https://dgmcp.com/register
- Enter your email and complete verification
- Copy your token (you'll need it in Step 3)
2Locate Claude Desktop Config File
Find and open the configuration file based on your operating system:
Quick access: Press Win + R,
type %APPDATA%\Claude
Quick access: Press Cmd + Shift + G in Finder,
paste the path above
Quick access: Open terminal and type nano ~/.config/Claude/claude_desktop_config.json
claude_desktop_config.json in the Claude directory.
3Add MCP Server Configuration
Open the config file in a text editor and add the following configuration:
For Windows:
{
"mcpServers": {
"stockmcp": {
"command": "cmd.exe",
"args": [
"/C",
"npx",
"mcp-remote",
"https://dgmcp.com/mcp",
"--header",
"Authorization: Bearer YOUR_TOKEN_HERE"
]
}
}
}
For macOS/Linux:
{
"mcpServers": {
"stockmcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://dgmcp.com/mcp",
"--header",
"Authorization: Bearer YOUR_TOKEN_HERE"
]
}
}
}
YOUR_TOKEN_HERE with your actual API token from Step 1!
4Restart Claude Desktop
For the changes to take effect:
- Completely close Claude Desktop and also quit from System Tray Overflow Menu.
- Reopen Claude Desktop
- Wait a few seconds for MCP servers to initialize
5Enable MCP Server in Claude
After restarting Claude Desktop, you need to enable the stockmcp connector:
Follow these steps in Claude Desktop:
- Click the ➕ (Plus icon) button in the message input area
- In the menu that appears, locate "Connectors" option
- Disable "Web search" (toggle it off)
- Enable "stockmcp" connector (toggle it on)
📸 Visual Guide:
Click ➕ → Find "Connectors"
🔍 Web search (Disable)
📊 stockmcp ✓ (Enable)
Now verify the connection:
"Check if TCS symbol is available"
If successful, Claude will use the check_symbol_availability tool and return the result!
🔧 Troubleshooting
If MCP server doesn't appear:
- Verify Node.js is installed: Open terminal/cmd and run
node --version - Check JSON syntax - use a JSON validator
- Ensure token is correct (no extra spaces)
- Check Claude Desktop logs in the same folder as config file
Setting Up DGmcp in ChatGPT Desktop
1Get Your API Token
Obtain your authentication token from DGmcp:
- Visit https://dgmcp.com/register
- Enter your email and complete verification
- Copy your token securely
2Locate ChatGPT Desktop Config File
Find the MCP configuration file:
Quick access: Press Win + R,
type %APPDATA%\OpenAI\ChatGPT
Quick access: Press Cmd + Shift + G in Finder,
paste the path above
Quick access: Open terminal and type nano ~/.config/OpenAI/ChatGPT/mcp_config.json
3Add MCP Server Configuration
Edit the config file with your preferred text editor:
For Windows:
{
"mcpServers": {
"stockmcp": {
"command": "cmd.exe",
"args": [
"/C",
"npx",
"mcp-remote",
"https://dgmcp.com/mcp",
"--header",
"Authorization: Bearer YOUR_TOKEN_HERE"
]
}
}
}
For macOS/Linux:
{
"mcpServers": {
"stockmcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://dgmcp.com/mcp",
"--header",
"Authorization: Bearer YOUR_TOKEN_HERE"
]
}
}
}
YOUR_TOKEN_HERE with your actual API token!
4Enable MCP in ChatGPT Settings
Ensure MCP is enabled in ChatGPT Desktop:
- Open ChatGPT Desktop Settings
- Navigate to "Beta Features" or "Advanced"
- Enable "Model Context Protocol (MCP)" if available
- Save settings
5Restart ChatGPT Desktop
Restart the application to load MCP servers:
- Completely quit ChatGPT Desktop
- Reopen the application
- Wait for initialization (may take 10-15 seconds)
6Enable MCP Server in ChatGPT
After restarting ChatGPT Desktop, enable the stockmcp connector:
Follow these steps in ChatGPT Desktop:
- Look for the MCP/Extensions icon or ➕ button in the chat interface
- Open the "Extensions" or "MCP Servers" menu
- Find "stockmcp" in the available servers list
- Enable the stockmcp server (toggle it on)
📸 Visual Guide:
Find Extensions/MCP Menu
📊 stockmcp ✓ (Enable)
Now test the connection:
"Use the stockmcp server to check if INFY symbol is available"
🔧 Troubleshooting
Common issues and solutions:
- Ensure you're using ChatGPT Desktop (not web version)
- Verify MCP beta feature is enabled in settings
- Check Node.js installation:
node --version - Validate JSON syntax (no trailing commas, proper quotes)
- Check application logs for error messages
🛠️ Available Tools (29 Total)
📊 Basic Tools
- check_symbol_availability
- get_symbol_from_company_name
- get_historical_data
- compare_stocks
📈 Technical Indicators
- get_sma_analysis
- get_ema_analysis
- get_rsi_analysis
- get_macd_analysis
- get_atr_analysis
- get_adx_14_analysis
💹 Volume & Price
- get_volume_analysis
- get_volume_avg_analysis
- get_obv_analysis
- get_mfi_14_analysis
🎯 Advanced Analysis
- get_bollinger_bands_analysis
- get_stochastic_analysis
- get_multi_indicator_summary
- get_trend_strength_analysis
- get_top_stocks_by_category
💬 Example Queries
"Check if TCS symbol is available and get last 30 days historical data"
"Analyze TCS stock using RSI, MACD, and Bollinger Bands for the last 30 days"
"Give me the top 10 performing stocks in the banking sector on NSE for the last 30 days"
"Compare TCS, INFY, and WIPRO stocks for the last 60 days with volume analysis"