CrawlForge
Integration
Mcp Protocol
ProtocolMCP v1.0

MCP Protocol

Complete Model Context Protocol specification for CrawlForge MCP. Learn how to implement custom MCP clients and integrate with any AI framework.

What is MCP?

The Model Context Protocol (MCP) is an open standard created by Anthropic that enables AI assistants to securely access external data sources and tools. It defines a standardized way for AI models to discover, invoke, and receive results from external services.

JSON-RPC 2.0

Built on standard JSON-RPC for universal compatibility

Secure

API key authentication and rate limiting built-in

Extensible

Add custom tools without changing the protocol

Server Configuration

Configure your MCP client to connect to the CrawlForge MCP server.

Json
This configuration is for Claude Desktop. Other MCP clients may use different formats.

Tool Discovery

MCP clients discover available tools by calling the tools/list method.

Json
Tool Manifest Fields
NameTypeRequiredDefaultDescription
name
stringRequired-
Tool identifier (e.g., "fetch_url")
Example: fetch_url
description
stringRequired-
Human-readable tool description
Example: Fetch and parse HTML content from a URL
inputSchema
objectRequired-
JSON Schema defining tool parameters
Example: { "type": "object", "properties": {...} }

Tool Invocation

Invoke tools using the tools/call method with tool name and arguments.

Typescript
Async Execution: All tool calls are asynchronous. Use await in JavaScript or async/await in Python to wait for results.

Response Format

Tool responses follow the standard MCP format with content, metadata, and error handling.

Json

MCP Message Structure

Standard Message Fields
NameTypeRequiredDefaultDescription
method
stringRequired-
MCP method name (e.g., "tools/call")
Example: tools/call
params
objectRequired-
Method-specific parameters
Example: { "name": "fetch_url", "arguments": {...} }
id
stringRequired-
Unique request identifier for correlation
Example: req_12345

Error Codes

CodeNameDescription
-32700Parse ErrorInvalid JSON
-32600Invalid RequestMalformed request object
-32601Method Not FoundUnknown MCP method
-32602Invalid ParamsMissing or invalid parameters
-32603Internal ErrorServer error during execution
-32001Insufficient CreditsNot enough credits to execute tool

Best Practices

Use Unique Request IDs

Generate unique IDs for each request to correlate responses

Handle Errors Gracefully

Check for both JSON-RPC errors and tool-specific errors

Implement Timeouts

Set reasonable timeouts for tool calls (10-30 seconds)

Monitor Credit Usage

Track _meta.credits_remaining in responses

Troubleshooting

Connection Issues? Ensure your API key is valid and the server path is correct. Check environment variables and network connectivity.

For detailed troubleshooting, see the Claude Desktop guide or contact support.

Ready to integrate?
Choose your integration method and start building.