MCP Server
Learn how to deploy your own MCP server with Ink using a simple prompt.
Create an Ink account and connect Ink
Make sure you have an Ink account and have set up Ink for your agent. Use the CLI, the Ink Skill, or MCP. For MCP auth, choose:
- OAuth — authenticate through a browser flow, no keys to manage
- Token — create an API key at deployink.com/account/api-keys
See Quick Start for full setup instructions.
Verify the connection
Once Ink is connected, confirm your agent can reach it by asking it to check.
Do you have Ink connected?
Build the MCP server
Ask your agent to build an MCP server. The agent will scaffold a TypeScript project using the @modelcontextprotocol/sdk package with tool handlers.
Build an MCP server in TypeScript that provides tools for querying a public weather API. Include tools for current weather and forecast.
Deploy with Ink
Tell your agent to deploy. Once live, you can add the deployed URL as an MCP server in Claude Code, Cursor, or any MCP-compatible client.
Deploy to Ink so I can use it from Claude Code
service_create(
"name": "weather-mcp",
"repo": "ink/weather-mcp",
"build_pack": "railpack",
"ports": {
"0": "[object Object]"
}
)Connect your MCP client
Add the deployed URL as an MCP server in your client. Your MCP server is now accessible from any agent or IDE that supports the protocol.
Check logs and metrics (optional)
Ask your agent to pull build logs, runtime logs, or metrics for your deployed service.
Check metrics and logs
That's it — your MCP server is deployed and live. From here you can add a custom domain, set up environment variables, or explore more examples.