# Installation & Setup
## Prerequisites
- Node.js (v16 or higher)
- Bun package manager (recommended) or npm
- Claude Desktop, Cursor, or VSCode with MCP support
## Step 1: Clone/Download
```bash
git clone https://github.com/yourusername/pastemyst-mcp.git
cd pastemyst-mcp
```
## Step 2: Install Dependencies
```bash
bun install
# or
npm install
```
## Step 3: Build the Project
```bash
bun run build
# or
npm run build
```
This will:
1. Compile TypeScript to JavaScript
2. Create the `build/` directory
3. Set proper file permissions
## Step 4: Configure MCP Client
### For Claude Desktop
**Windows:** `%AppData%\Claude\claude_desktop_config.json`
**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
```json
{
"mcpServers": {
"pastemyst": {
"command": "node",
"args": ["C:/absolute/path/to/pastemyst-mcp/build/index.js"],
"env": {
"PASTEMYST_API_TOKEN": "your_api_token_here"
}
}
}
}
```
### For Cursor/VSCode
Add to your MCP configuration file (`.cursor/mcp.json` or similar):
```json
{
"mcpServers": {
"pastemyst": {
"command": "node",
"args": ["/absolute/path/to/pastemyst-mcp/build/index.js"],
"env": {
"PASTEMYST_API_TOKEN": "your_api_token_here"
}
}
}
}
```
## Step 5: Get Your API Token (Optional)
1. Go to [PasteMyst](https://paste.myst.rs)
2. Log in or create an account
3. Navigate to Profile → Settings
4. Copy your API token
5. Add it to the config as shown above
**Note:** API token is optional. Without it, you can still:
- Create public pastes
- View public pastes
- Get language information
- Check if users exist
## Step 6: Restart Your Client
Restart Claude Desktop, Cursor, or VSCode to load the new MCP server.
## Verification
Test the installation by asking:
"What language uses the .py extension?"
If you get a response about Python, you're all set! 🎉