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:
Generate a Gram API key
Section titled “Generate a Gram API key”- In Settings, click Create API Key.
- Give the API key a name, and click Create.
Get the MCP server configuration
Section titled “Get the MCP server configuration”- In the Playground, click the MCP tab.
- Click MCP Config to view the server configuration.
Configure an MCP client
Section titled “Configure an MCP client”- 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.
Next steps
Section titled “Next steps”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.
Troubleshooting
Section titled “Troubleshooting”Common MCP server issues and fixes:
Tools not working?
Section titled “Tools not working?”- Check your authentication configuration.
- Verify your server URL is accessible.
Wrong tools being selected?
Section titled “Wrong tools being selected?”- Reduce the number of tools in your toolset.
- Use custom tools to create workflows with precise steps.
- Create focused toolsets for different use cases.