Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ __pycache__
**/dist
**/node_modules
**/.pnpm-store
**/*.tsbuildinfo
**/*.tsbuildinfo
.env
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ claude mcp add near-mcp npx @nearai/near-mcp@latest run
claude
```

Or deploy the MCP server remotely on Phala Cloud, check the instructions [here](./tee.md)

## Installing

`near-mcp` is meant to be used is with an MCP compatible client. Learn more in the [MCP docs](https://modelcontextprotocol.io/introduction)
Expand Down
25 changes: 25 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: '3.8'

services:
near-mcp:
build:
context: .
dockerfile: Dockerfile
image: near-mcp:latest
container_name: near-mcp-server
restart: unless-stopped
volumes:
- ~/.near-keystore:/root/.near-keystore
ports:
# Expose the SSE server port
- "3001:3001"
# Override the entrypoint from the Dockerfile
entrypoint: []
command: ["bash", "/app/scripts/run"]
environment:
- NODE_ENV=production
- NEAR_KEYSTOREDATA=${NEAR_KEYSTOREDATA}
- NEAR_NETWORK=${NEAR_NETWORK:-mainnet}
- NEAR_ACCOUNT_ID=${NEAR_ACCOUNT_ID}
- NEAR_KEYSTORE=/root/.near-keystore

Loading