# Getting Started with Code-MCP
## Prerequisites
- Node.js 20+
- npm or yarn
## Installation
### Option 1: Clone and Run Locally
```bash
git clone https://github.com/millsydotdev/Code-MCP.git
cd Code-MCP
npm install
npm run build
npm start
```
### Option 2: Docker
```bash
docker pull ghcr.io/millsydotdev/code-mcp
docker run -i ghcr.io/millsydotdev/code-mcp
```
### Option 3: Use Cloud Version
No installation needed! Connect to:
```
https://code-mcp-production.up.railway.app
```
## Connect to AI Tools
### Claude Desktop
Add to `claude_desktop_config.json`:
```json
{
"mcpServers": {
"code-mcp": {
"command": "node",
"args": ["/path/to/Code-MCP/dist/index.js"]
}
}
}
```
### Cloud Connection
```json
{
"mcpServers": {
"code-mcp-cloud": {
"url": "https://code-mcp-production.up.railway.app/mcp",
"headers": {
"x-api-key": "your-api-key"
}
}
}
}
```
## Verify Installation
```bash
# Test locally
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node dist/index.js
# Test cloud
curl https://code-mcp-production.up.railway.app/health
```
## Next Steps
- [Tools Reference](./tools.md)
- [Resources Guide](./resources.md)
- [API Reference](./api.md)