---
title: Opencode
description: Install Docfork MCP in Opencode
---
Add this to your Opencode configuration file. See [Opencode MCP docs](https://opencode.ai/docs/mcp-servers) for more info.
#### Remote Server Connection
```json theme={null}
"mcp": {
"docfork": {
"type": "remote",
"url": "https://mcp.docfork.com/mcp",
"headers": {
"DOCFORK_API_KEY": "YOUR_API_KEY"
},
"enabled": true
}
}
```
#### Local Server Connection
```json theme={null}
{
"mcp": {
"docfork": {
"type": "local",
"command": ["npx", "-y", "docfork", "--api-key", "YOUR_API_KEY"],
"enabled": true
}
}
}
```