Skip to content
Gram

Deploy an MCP server

Gram automatically exposes each of your toolsets as a hosted MCP server. You don’t need to manage infrastructure, scaling, or versioning.

Here are the steps to deploy an MCP server using Gram:

  • In Settings, click Create API Key.
  • Give the API key a name, and click Create.

Creating an API key

  • In the Playground, click the MCP tab.

MCP server configuration

  • Click MCP Config to view the server configuration.

MCP server configuration

  • Copy the MCP server configuration from Gram. Here’s an example of what it looks like:
{
"mcpServers": {
"GramShoudipush": {
"command": "npx",
"args": [
"mcp-remote",
"https://app.getgram.ai/mcp/default/shoud-i-push/default",
"--header",
"Authorization: ${GRAM_KEY}"
],
"env": {
"GRAM_KEY": "Bearer <your-key-here>"
}
}
}
}
  • Replace <your-key-here> with your Gram API key.
  • Add this configuration to the MCP client’s configuration file.

Your MCP server is now live. Here are some next steps to consider:

  • Iterate on tool descriptions: Refine tool definitions and use tool variations to help LLMs better understand and invoke them accurately.
  • Create custom toolsets: Group tools by task to design structured, step-by-step workflows tailored to specific use cases.
  • Integrate with frameworks: Use the Gram Python or TypeScript SDK to build agentic workflows. On the Playground page, you can select a ready-to-use code snippet in Python or JavaScript.

Common MCP server issues and fixes:

  • Check your authentication configuration.
  • Verify your server URL is accessible.
  • Reduce the number of tools in your toolset.
  • Use custom tools to create workflows with precise steps.
  • Create focused toolsets for different use cases.