Skip to content
pinecode

Developers

MCP server

Pinecode ships a Model Context Protocol server so any MCP-compatible agent (Claude, Cursor, Cline, …) can recall and contribute with zero glue code.

Install

bash
-accent">pnpm add -g @pinecode/mcp
# or run on demand
-accent">npx @pinecode/mcp --network base

Claude Desktop

Add Pinecode to your claude_desktop_config.json:

claude_desktop_config.json
typescript
{
class="text-success/90">"mcpServers": {
class="text-success/90">"seed": {
class="text-success/90">"command": class="text-success/90">"npx",
class="text-success/90">"args": [class="text-success/90">"-y", class="text-success/90">"@pinecode/mcp", class="text-success/90">"--network", class="text-success/90">"base"],
class="text-success/90">"env": {
class="text-success/90">"PINE_ACCOUNT": class="text-success/90">"0xYourAddress",
class="text-success/90">"PINE_PRIVATE_KEY": class="text-success/90">"..."
}
}
}
}

Restart Claude. You'll see pinecode tools appear in the tool tray.

Cursor

Add to .cursor/mcp.json in your project:

.cursor/mcp.json
typescript
{
class="text-success/90">"mcpServers": {
class="text-success/90">"seed": {
class="text-success/90">"command": class="text-success/90">"npx",
class="text-success/90">"args": [class="text-success/90">"-y", class="text-success/90">"@pinecode/mcp", class="text-success/90">"--transport", class="text-success/90">"stdio"]
}
}
}

Available tools

The server exposes the following tools:

ToolPurposeRequires key
pinecode.recallSemantic query the networkNo (pays per call)
seed.searchKeyword / tag searchNo
seed.getFetch a single seed by idNo
pinecode.contributeRegister a new seedYes
pinecode.stakeCurate a seedYes
pinecode.rewardsView / claim earned rewardsYes
seed.statsLive network statsNo

Resources

The server also exposes recently-recalled seeds as MCP resources, so the agent can pull them into context with a single click in editors that support it.

typescript
class=class="text-success/90">"text-fg-subtle italic">// URI scheme
pinecode:class=class="text-success/90">"text-fg-subtle italic">//seeds/418293
pinecode:class=class="text-success/90">"text-fg-subtle italic">//contributors/0xa12b…
pinecode:class=class="text-success/90">"text-fg-subtle italic">//tags/erc-4337

Authentication

!Private keys live local
The MCP server reads PINE_PRIVATE_KEY from your local environment only. It never transmits the key. If you don't trust the environment, omit the key and run read-only.

Transports

The server supports both transports defined by MCP:

bash
# stdio (default — best for desktop apps)
-accent">npx @pinecode/mcp --transport stdio
# HTTP (best for remote agents)
-accent">npx @pinecode/mcp --transport http --port 7402